This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes input stuff Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "input stuff" Watch "input stuff" New topic

input stuff

ryan headley
Ranch Hand

Joined: Jun 28, 2000
Posts: 156
I have always had a hard time with Input for a console program. What is the easy way to prompt someone for input and take that input from the keyboard??

Ryan Headley<br /><a href="" target="_blank" rel="nofollow"></a>
Apu Nahasapeemapetilon
Ranch Hand

Joined: Sep 06, 2000
Posts: 51
Apu, prefers using the readline method, than read, as read requires you to supply an array for input, and this can cause other behavior that is really not necessary.
Gotta love the naming convention...
ryan headley
Ranch Hand

Joined: Jun 28, 2000
Posts: 156
seems like alot of folks are messing with input from the console.
Thanx for your help....
I agree. Here's the link:
subject: input stuff