Keyboard input/Obtain a Y or N response: Difference between revisions
Keyboard input/Obtain a Y or N response (view source)
Revision as of 11:57, 2 August 2023
, 9 months agoFormatting text.
(New post.) |
m (Formatting text.) |
||
Line 1,110:
The task specification that there should be no need for the user to press the enter key,
creates an awkward situation for the Java language.
However, a short program that waits for the user to press return can easily be constructed.
<syntaxhighlight lang="java">
|