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!

newbie 'char' input question

807600Nov 28 2007 — edited Nov 28 2007
Hi, and thanks for reading/helping.

I'm very new to java, and I'm looking for an (easy!) way to read in a 'char' type input. I've been using 'Scanner', but that doesn't seem to have a char option, eg

scanner.nextChar(); //doesn't exist!

Am I better just using String, or is there a quick solution?

Many thanks!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 26 2007
Added on Nov 28 2007
1 comment
181 views