1. Write this code on your notepad!
public class HelloWorld!{
public static void main(String []args) {
System.out.println("Hello World");
}
}
2. Then save file and file name must same with class name with type set as All Files and give extension .java behind file name.