terminal java version command code example
Example: java in terminal
jshell
| Welcome to JShell -- Version 12.0.1
| For an introduction type: /help intro
jshell> int i=99;
i ==> 99
jshell> System.out.println(i);
99
jshell
| Welcome to JShell -- Version 12.0.1
| For an introduction type: /help intro
jshell> int i=99;
i ==> 99
jshell> System.out.println(i);
99