- Type this following Java source code in your IDE:
class MyFirstJavaProgram {
public static void main(String args[]) {
// Prints "Hello, World" in the terminal window
System.out.println("Hello World");
}
}
//As main method is static no need to create a object for class MyFirstJavaProgram - Save as MyFirstJavaProgram.java.
- Compile and run Java source code from above.
< previous How To Compile Java 1
Tidak ada komentar:
Posting Komentar