java how to run a shell command with java args code example
Example: java command line arguments
class CommandLineExample{
public static void main(String args[]){
System.out.println("Your first argument is: "+args[0]);
}
}
//Now follow these steps
compile by > javac CommandLineExample.java
run by > java CommandLineExample sonoo