Re: simple loop question
"matt" <mweppler@xxxxxxxxx> writes:
> response = (char)System.in.read();
You need to realize that System.in is (normally) line-buffered, so
nothing gets to your program until the user hits enter. Thhen you get
what they have typed, inluding the line terminator character(s). You
assume you only get one of the four characters.
.
Relevant Pages
- Re: reading from a text file
... > then the characters after LINE_LEN and before the newline, ... See my other response in this thread. ... Prev by Date: ... (comp.lang.c) - Re: OT: Translate into English
... c " tse tse ... it doesn't display the characters correctly ... your response should also have been in UTF-8. ... well and replace them with user-unfriendly features whose only virtue is ... (alt.usage.english) - Re: H.P.Lovecraft
... Authors lose me when their characters do not respond ... appropriate response is to raise an eyebrow and say "Fascinating". ... you have no experience of and cannot name that will snap your mind. ... that we can't comprehend. ... (rec.arts.sf.written) - sector #prep post-war regulation
... Both leaving now, Ayub and Yolanda afforded the aware ... Where does Murad touch so cheerfully, ... in response to the limb below the gallery. ... The essences, complexitys, and characters are all occupational and ... (sci.crypt) - Re: For Sean Pitman again: Some real nested hierarchies
... pattern in the same way I have done for two primate genes. ... I picked my characters and my genes at random. ... I'm saddened you haven't been able to get a response. ... a NHP). ... (talk.origins) |
|