How to compile java over terminal, command line , Run java file

1. You need to check, java version with this command
[crayon-662b2c2b20718139121126/]
2. Compile the code
[crayon-662b2c2b2071e069513390/]
3. Run The compiled
[crayon-662b2c2b20720093869615/]
[crayon-662b2c2b20723048889924/]
[crayon-662b2c2b20725046110474/]