PDA

Click to See Complete Forum and Search --> : [resolved]


Evil_Cowgod
May 12th, 2006, 04:45 AM
problem solved, thanks :)

ComputerJy
May 12th, 2006, 06:53 AM
You must know that Scanner is not only for user Command Prompt input, it scans all kind of streams (memory, files, http, ...etc).

In your case, the test will always return (!false==true)because the user didn't enter anything and there is no pending data in the (System.in) stream