Java Command_Line Arguments


write a java program of  Accept command line arguments and display Text which user input through command prompt

Program Solution of Command_Line Arguments

 

output of Command line arguments in Java

// compile java program

e:>javac Command.java

 // Run/Execute  java program   

e:>java Command   Apple    23    5.678   M

Argument [ 0 ] is :   Apple

Argument [ 1 ] is :   23

Argument [ 2 ] is :   5.678

Argument [ 3 ] is :   M

(Visited 74 times, 1 visits today)

Leave a Reply

Your email address will not be published. Required fields are marked *


CAPTCHA Image
Reload Image