Jump to content

Keyboard input/Obtain a Y or N response: Difference between revisions

m
Formatting 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">
894

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.