Java hello world
<p>I am new to java programming. I tried hello world program, but I got an error "<strong>not a statement</strong>". Whereas when I copy, paste the hello world program from the internet, my program compiled. This is the program I used. What is meant by "<strong>not a statement</strong>", please explain why I got this error and what is meant by it and what should I look for when I get this error in the future. Thanks!</p>

<pre><code>public class hello
 {
   public static void main(String args[]) {
   System.out.println(“hello world”);
}
}
</code></pre>

<p>My errors:-</p>

<pre><code>hello.java:8: error: illegal character: '\u201c'
       System.out.println(“hello world”);
                          ^
hello.java:8: error: ';' expected
       System.out.println(“hello world”);
                           ^
hello.java:8: error: illegal character: '\u201d'
       System.out.println(“hello world”);
                                         ^
hello.java:8: error: not a statement
       System.out.println(“hello world”);
                                 ^
4 errors
</code></pre>