


/* * compile this program using javac commandline.java * to run " java commandline" and check the output * use "java commandline hello "and check the ouput */
public class commandline{ public static void main(String args[]) { if(args.length>0)//check for presence of command line arguments { System.out.println("The First Command-line-arugement is "+args[0]); //Not:First command will be stored in args[0],second will be in args[1] and so on.. } else { System.out.println("No Command-line-arugement"); } } }