Ads

Tuesday, 10 October 2017

How to get values from user in java || Command Line Argument


Example of Command Line Argument


Class Demo
{
             public static void main(String args[])
             {
                          System.out.println(args[0]);
              }

}

Command Line Argument is nothing but run-time argument. In Command line argument, when you run your program you need to add some values.

Post a Comment

Click Here