Thu Feb 05, 2009 12:02 am
public class Passparam{
public static void main (String [] args) {
System.out.println("Number of arguments passed are " + args.length);
System.out.println("The First " + args[0]);
System.out.println("The second " + args[1]);
}
}
java Passparam code miles
Number of arguments passed are 2
The First code
The second miles
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.