this is a simple way to compile java file and run it.