but there's a problem in next program,
please can you tell whats wrong with this one
public class MyFirstClass{
public static void main(String[] args){
System.out.println(“hello World”);
int x = 10;
int y = 20;
int c = x + y;
System.out.println(c );
}
}
cause when m running it,it says
C:\Users\akashy\java\src>javac MyFirstClass.java
MyFirstClass.java:3: illegal character: \8220
System.out.println(ôhello Worldö);
^
MyFirstClass.java:3: ';' expected
System.out.println(ôhello Worldö);
^
MyFirstClass.java:3: illegal character: \8221
System.out.println(ôhello Worldö);
^
MyFirstClass.java:3: not a statement
System.out.println(ôhello Worldö);
^
4 errors
now whats wrong with this one