|
Given the following,
public class CommandArgsTwo {
public static void main(String [] argh) {
String [] args;
int x;
x = argh.length;
for (int y = 1; y <= x; y++) {
System.out.print(" " + argh[y]);
}
}
}
and the command-line invocation,
java CommandArgsTwo 1 2 3,Java, C ,C++, ASP, ASP.net C# ,Struts ,Questions & Answer, Struts2, Ajax, Hibernate, Swing ,JSP , Servlet, J2EE ,Core Java ,Stping, VC++,
HTML, DHTML, JAVASCRIPT, VB ,CSS, interview ,questions, and answers, for,experienced, and fresher
Given the following,
public class CommandArgsTwo {
public static void main(String [] argh) {
String [] args;
int x;
x = argh.length;
for (int y = 1; y <= x; y++) {
System.out.print(" " + argh[y]);
}
}
}
and the command-line invocation,
java CommandArgsTwo 1 2 3
|