posted 18 years ago
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 ??
Have the determination of mirror which never fails to reflect in spite of being broken into pieces.<br /> <br />Kiss the hands you cannot bite.<br /> <br />An Optimist is one who starts taking a bath when he accidentally falls into the water.