Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

User input String convert it to char ?

807600Sep 27 2007 — edited Sep 28 2007
Hello, 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 !
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 26 2007
Added on Sep 27 2007
5 comments
472 views