• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Command Line Argument

 
Khurram
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An application takes in arguements.


This will print:
>The input number was 2
>I am not sure what the Twenty Five is about.
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic