class CmdLimit // Creating a class
{
public static void main(String args[]) //Arguments would be passed through main. {
int n,i;
n = args.length; // length of the argument is stored in n
for(i=0;i<n;i++)
{
System.out.println("Arguement" +i+" "+args[i]); //arguments would be printed one by one
}
}
}
{
public static void main(String args[]) //Arguments would be passed through main. {
int n,i;
n = args.length; // length of the argument is stored in n
for(i=0;i<n;i++)
{
System.out.println("Arguement" +i+" "+args[i]); //arguments would be printed one by one
}
}
}
or Goto BlueJ
No comments:
Post a Comment