Pregunta

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”);
    }
}
¿Fue útil?

Solución

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.

Otros consejos

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

public class HelloWorldApp {

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

 }
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top