Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Beginning Java
Search Coderanch
Advance search
Google search
Register / Login
Forums
Register
Login
Java
»
Beginning Java
Keyboard events without GUI
vivien siu
,
Ranch Hand
Nov 21, 2005 19:33:00
(0 cow)
(0 skulls)
+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.
marc weber
,
Sheriff
staff
Nov 21, 2005 19:43:00
(0 cow)
(0 skulls)
+Pie
Number of slices to send:
Send
Have you looked at the
java.util.Scanner
class?
vivien siu
,
Ranch Hand
Nov 21, 2005 21:14:00
(0 cow)
(0 skulls)
+Pie
Number of slices to send:
Send
yups, using the System.in for the constructor argument. Thanks
Post by:
autobot
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
.