run java program on linux terminal code example
Example: run java from terminal linux
//To compile, type
javac filename.java
//To run the generated class file, use
java filename
//To compile, type
javac filename.java
//To run the generated class file, use
java filename