This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills and have John Sonmez on-line!
See this thread for details.
The moose likes Java in General and the fly likes Program mod w/o command line arguments Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Program mod w/o command line arguments" Watch "Program mod w/o command line arguments" New topic
Author

Program mod w/o command line arguments

Rocky Wise
Greenhorn

Joined: Sep 03, 2002
Posts: 1
What is the proper way to modify the program to eliminate the command line arguments and the standard input is used?

[ September 03, 2002: Message edited by: Marilyn de Queiroz ]
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
You need to put in a bit of code which types out a line asking the user to type the input on the console, and then read it in using the console.


"JavaRanch, where the deer and the Certified play" - David O'Meara
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9053
    
  12
Here's something I found on the web one time that might help.


JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
 
 
subject: Program mod w/o command line arguments