1) public class Hello printer
2) {
3). Public static void main ( string[ ] arcs)
4). {
5). # Display a greeting in the console window
6)
7). System.out.printin ( “Hello, world ” );
8). }
9). }
Program Run
Hello, world !
Just use the simple and correct code:
public class MyClass {
public static void main(String[] args) {
System.out.println("Hello World");
}
}