how to run linux commands in java 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