Last active
September 30, 2015 15:11
-
-
Save vajahath/ac49eb909c958bebde7f to your computer and use it in GitHub Desktop.
Java Program that Uses Command Line Arguments.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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