Hey, I'm new to this forum, as well as Java. I know that JDK 5.0 has a scanner class for detecting keyboard input as chars, ints, and Strings.
I am using Eclipse, and I created a new Java project with JRE 1.5.0_06.
I updated the JDK with NetBeans, so I am sure I am up-to-date.
I created a simple program in Eclipse which used Input. So the program automatically imported java.util.Scanner. And I wrote my code:
Scanner keyboard = new Scanner(System.in);
char in = keyboard.nextChar();
Everything is recognized but nextChar();
Please help me, because I really want to learn Java. I will try to help people with their problems and such. I will be an ective member of this forum!
Thank you for all you help, time and support!