Sample code to demonstrate the command line argument in Java.
public static void main(String ar)
System.out.println(”The Argument you have entered is ” +ar);
while running a Java file after the Successful Completion on compiling.
#java carg nice
The Argument you have entered is nice
Feel free to share your comments.