|
-
May 12th, 2006, 04:45 AM
#1
Thread Starter
Addicted Member
[resolved]
problem solved, thanks
Last edited by Evil_Cowgod; May 13th, 2006 at 01:56 AM.
When you ask a question, try and answer a few 
-
May 12th, 2006, 06:53 AM
#2
Re: four lines of simple code - inexplicable behaviour
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
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|