Program to illustrate the command-line arguments

/*  Program to illustrate the command-line arguments  */

class CommandLineDemo
{
    public static void main(String args[])
    {
        for(int i =0;i<args.length;i++)
            System.out.println("args["+i+"]: "+args[i]);
    }
}

0 comments:

Post a Comment

 
 
 
 


Copyright © 2012 http://codeprecisely.blogspot.com. All rights reserved |Term of Use and Policies|