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

Program mod w/o command line arguments

Rocky Wise

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"

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

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

"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
I agree. Here's the link:
subject: Program mod w/o command line arguments
It's not a secret anymore!