Hello, I was trying to learn Java a few months ago through the Sun tutorials and Sun.com. However, I stopped trying because I COULD NOT FIND HOW TO DO ANY SIMPLE INPUT. All I could do was make a command promt style program that said "hi, would you like to see my array? I'll show you my array, because you cannot give me any Yes/No input!" Exciting... anyway, would anyone please tell me the simplest input function for Java? Or is there a reason that I couldn't find it? I'd like to start learning Java again! Thank you very much.
~ASauce
|
Contributor
|
|
| 15Apr2007,09:40 | #2 |
|
Google some info on DIS - Data Input Streams.
They are one way to accept input in Java proggs. |
|
Newbie Member
|
|
| 15Jun2007,18:06 | #3 |
|
Quote:
Originally Posted by stalepretzel import Javax.swing.* package, and use the JOptionPane.showInputDialog( String msg) to accept input. It returns String so type cast to your desired type.
|
