Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren+ 1
char Input
How to read a char from input? Like we use nextInt() for integer input. How can we input a character?
3 Antworten
+ 2
try "nextLine()" or "next()"
0
But nextLine()is for String. It can also get more than 1 character during input.
0
Thanks for the Help👍👍