If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
I'm trying to convert a String that I'm reading from input to a character and didn't see an equivalent to the Integer.ParseInt(), for example, for the Character class in the documentation.
It sounds like you just want to do new Character(myString.charAt(0));. Probably a little more dummy-proofing, but it doesn't seem particularly difficult.
Chuck ___ "Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
Originally posted by Chuckit: It sounds like you just want to do new Character(myString.charAt(0));. Probably a little more dummy-proofing, but it doesn't seem particularly difficult.
Excellent. Thanks Chuckit, that should work. (And a different approach than I had been considering....)