how to run a java file in linux terminak 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