File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Command Line Argument


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"

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"

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.
I agree. Here's the link:
subject: Command Line Argument
It's not a secret anymore!