just save the files and try to compile and execute again it will work. compile command : javac filename.java execute command : java filename.java (goes to the JVM)
Hope this helps