public class argss {
public static void main(
String[] args) {
for (int i=0; i < args.length; i++) {
System.out.println("Hello " + args[i]);
}
}
}
I tried running the application but I didn't get any output ??
How to send any string via Command Prompt ??
Also how to send input in a program. Like "system.out.print" outputs on the console , how can we input to the code. Either way like In C++ we use "cin" to input in the program, how/what is for
Java ??