Java Tutor...
Program to show Common line interface in Java
class ComLineArgs
{
public static void main(String args[])
{
int count,i=0;
String str;
count=args.length;
System.out.println("number of arguments="+count);
while(i
<=count)
{
str=args[i];
i++;
System.out.print(i+: "+"java is"+str);
}
}
}
‹
›
Home
View web version