This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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.
subject: Command Line Argument
Similar Threads
how to read character from command line and store it string
ArrayList Problem(s)
Problem During Compilation of EJB Jar with Weblogic.ejbc tool
Complex Number
limit input