aspose file tools*
The moose likes Beginning Java and the fly likes waiting for user input Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "waiting for user input" Watch "waiting for user input" New topic
Author

waiting for user input

jam hall
Greenhorn

Joined: Sep 06, 2005
Posts: 4
When i've output data to the screen using command line interface i'd like to request the user to hit enter to return to the menu screen. Using readLine method of BufferedReader it was possible to read a blank line. Using the next mehtod of Scanner it seems not to allow the input of a blank line. Does anyone know a way round this problem?

Thanks Ahead
Joanne Neal
Rancher

Joined: Aug 05, 2005
Posts: 3169
    
  10
Which next method did you use ? Have you tried nextLine() and/or hasNextLine() ?


Joanne
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: waiting for user input
 
Similar Threads
Adding second screen to android app comes up blank
Redirecting to the user's home page
Removing business logic???
Getting an input from the user using command-line arguments?
need help i have assighment to finish before end of day