logo Practice-It logo

BJP4 Exercise 1.6: Meta

Language/Type: Java classes println
Author: Marty Stepp (on 2016/09/08)

Write a complete Java program called Meta whose output is the text that would be the source code of a Java program named Hello that prints "Hello, world!" as its output:

public class Hello {
    public static void main(String[] args) {
        System.out.println("Hello, world!");

Your program must produce exactly the output shown in order to pass (using exactly four spaces for each increment of indentation in the output).

Type your solution here:

This problem asks for a complete program. Write a complete Java program as a class with a main method. (You do not need to write any import statements.)

You must log in before you can solve this problem.

Log In

If you do not understand how to solve a problem or why your solution doesn't work, please contact your TA or instructor.
If something seems wrong with the site (errors, slow performance, incorrect problems/tests, etc.), please

Is there a problem? Contact a site administrator.