How To Run Java Program On Linux Terminal Code Example

Snippet 1
  javac HelloWorld.java

java HelloWorld