Skip to content

Instantly share code, notes, and snippets.

@vajahath
Last active September 30, 2015 15:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vajahath/ac49eb909c958bebde7f to your computer and use it in GitHub Desktop.
Save vajahath/ac49eb909c958bebde7f to your computer and use it in GitHub Desktop.
Java Program that Uses Command Line Arguments.
class Comandln
{
public static void main(String []args)
{
int i,c;
int l=args.length;
String str;
for(i=0;i<l;i++)
{
str=args[i];
System.out.println("arg["+i+"]="+str);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment