aspose file tools*
The moose likes Beginning Java and the fly likes Command Line Argument Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Command Line Argument" Watch "Command Line Argument" New topic
Author

Command Line Argument

Khurram
Greenhorn

Joined: Oct 29, 2001
Posts: 1
I have a question that if we input any integer from the command line like :-
java Khurram 2
so it will print Twenty Five
is it possible or some body gives me the hint : plz
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
An application takes in arguements.


This will print:
>The input number was 2
>I am not sure what the Twenty Five is about.


"JavaRanch, where the deer and the Certified play" - David O'Meara
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
PS: Khurram,
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at "JavaRanch Naming Policy" . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. We would like this forum to be as Professional as possible. Please choose a new name which meets the requirements.
Cindy
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Command Line Argument
 
Similar Threads
Problem During Compilation of EJB Jar with Weblogic.ejbc tool
limit input
Complex Number
how to read character from command line and store it string
ArrayList Problem(s)