User input String convert it to char ?
807600Sep 27 2007 — edited Sep 28 2007Hello, Im new to Java and this Forum. I hope I can learn and help !
Im having trouble with a task.
I want to make a program that:
Prompt the user to enter how many characters is going to be added
Prompt the user to enter the characters in ( IN THE RIGHT MANNER ( ABC ) )
All characters are listed in for the user...
if the user enter the wrong character the program will ask him again until he puts it right.
he is only allowd to input from A til F else he will be asked to inter again.
My problem is how to convert what the user have entered after a system in and convert it from String to an char !
and then I have to check if the char the user have inputed is smaller than 71 = G - Becouse he is only allowd to enter from A to F.
Thank you !