Back
f your string contains exactly one character the simplest way to convert it to a character is probably to call the charAt method:
char c = s.charAt(0);
31k questions
32.8k answers
501 comments
693 users