Command Line Arguments in Java

Command Line Arguments:

Command-line arguments are parameters that are supplied to the application program at the time of invoking it for execution. It may be recalled that the program was invoked for execution.

class Test
{
public static void main(String args[])
{
int count, i=0;
String string;
count=arg.length;
System.out.println("Number of arguments ="+count);
while(i<count)
{
string=args[i];
i=i+1;
System.out.println(i+" : "+"Java is"+string+"!");
}
}
} // The output of the program would be :
Number of arguments=3

Output:
1: Java Simple Programming Language!
2: Java Object-Oriented Programming Language!
3: Java is Platform-Independent Language!