Command Line Argument
All the command line argument separated by the space.
[Note: -in the java each array has the length properties that specify the no of elements content by the array.]
- Command line argument is the way by which we can provide the values to the program from outside the program.
- The java tool provide the syntax to pass the command line argument.
![]() |
Give the argument at run time |
Ex:
![]() |
Command line argument
|
Example: -A java program to get the
command line values.
All the command line argument separated by the space.
[Note: -in the java each array has the length properties that specify the no of elements content by the array.]
No comments:
Post a Comment