Answers for "how to write commands to the terminal from java"

0

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
Posted by: Guest on September-11-2020
0

how to compile a java program in terminal

//Change directory into where all the java files are
javac *.java
//Chagne direcotry into com
java com.company.Main
Posted by: Guest on October-06-2021

Code answers related to "how to write commands to the terminal from java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language