Thread: Java help.
View Single Post
Old 10-24-2007, 07:24 PM   #2 (permalink)
Hachima
Registered User
 
Join Date: Oct 2004
Posts: 1,701
the frist keyboard.nextLine() will be ignored when it follows a keyboard.nextInt()

You could request a dummy keyboard.nextLine() to clear the buffer of the newline.

The else if (choice >1 || choice <4 ) statement is incorrect and will always be true.

Last edited by Hachima : 10-24-2007 at 07:29 PM.
Hachima is offline   Reply With Quote

 
Uberguilds Network