open new notepad file save it any were you want and copy following codes to it and save as "Helloworld.java".
[its good to save that file in a directory that you can normally access to it , EX - c:\ ]
public class Helloworld {
public static void main(String[] args) {
System.out.println("My nmae is NEO My People call Me the ONE");
}
}
now open the cmd (command prompt , win key+ r >> type cmd >> hit enter. ).
now you have to go to were you save your .java file.
EX - c:\
in cmd type cd\ and hit enter the dir will change to c:\
use cd (forward) command and cd..(back) to go to your file though cmd.
then type this to compile the code.
javac Helloworld.java
javac Helloworld
if you follow the instruction care fully , it will print "My nmae is NEO My People call Me the ONE" in the cmd.
errors - :
if your file name and main method name not equal , then error can be occurred and also remember to set class path
before you come to this steps (described in 1 step of this doc) .
check your spellings.
and semicolons.
java is a case sensitive language so pay attention about them.