New course! Every coder should learn Generative AI!
Try a free lesson+ 1
How can Scanner read char?
I've Been trying but there's just Strings
1 Answer
+ 3
You can't, but you could do this:
for(char c : new Scanner(System.in).nextLine().toCharArray()) System.out.println(c);