Forums Register Login

Keyboard events without GUI

+Pie Number of slices to send: Send
hi, is there a way to accept input from user without using any GUI interface? My program will take in the key typed by user then responds according to the key typed. All this will be done in Command Prompt and run from JAR file.
+Pie Number of slices to send: Send
Have you looked at the java.util.Scanner class?
+Pie Number of slices to send: Send
yups, using the System.in for the constructor argument. Thanks
The overall mission is to change the world. When you've done that, then you can read this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 2813 times.
Similar Threads
Using Java How will u check key typed from the Keyboard is ESC key or not
how to give focus to a component ?
Reading a file written by c++, or is there any other way?
Editable combobox events
How to build a frame ?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 05:39:32.