This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Giving command line instrux while the program is running Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Giving command line instrux while the program is running" Watch "Giving command line instrux while the program is running" New topic
Author

Giving command line instrux while the program is running

Christopher Whu
Ranch Hand

Joined: Sep 03, 2008
Posts: 80
Looking for a good tutorial on how to write a proggy that listens for command line instrux while running. I just need to be pointed in the right direction. Thanks in advance.
Karsten Daemen
Greenhorn

Joined: Nov 19, 2009
Posts: 19
Look for a tutorial about "threading", threads allow you to do multiple things at once, like listening to the command prompt and executing other routines ...
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Please UseRealWords when posting. Using abbreviations makes your writing much harder to understand, especially for the many Ranchers for whom English isn't their native language. It also suggests that you don't care enough to ShowSomeEffort when presenting your question.

You can edit your post by using the button.

Thanks!
pete stein
Bartender

Joined: Feb 23, 2007
Posts: 1561
Just what do you mean by "listens for command line instructions"? Do you mean a simple console program? If so, look at the Scanner class. Something else? Then perhaps give us more details on your problem.

Much luck!
Christopher Whu
Ranch Hand

Joined: Sep 03, 2008
Posts: 80
I did not know the terminology. I guess I am looking for a good console application tutorial . I want to be able to type commands to the application while it's running.

I will sceck out the scanner class.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Giving command line instrux while the program is running