Question

Hi I am making a hello world app, my third line is keep messing up and I don't know why. Any suggestions, my teacher gave me a brief direction for it but looks like i messed up on something and i went through it three times.

public class HelloWorldApp {
    public static void main(String [] args){
        System.out.println(“Hello World”);
    }
}
Was it helpful?

Solution

The quote marks are not good.

Java standard quotes for strings are ", and not .

Anyways, also try System.out.println(1); and tell us does it print number.

OTHER TIPS

You need to put " instead of for your string...

public class HelloWorldApp {

 public static void main(String[] args){
    System.out.println("Hello World");
  }

 }
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top