Lowest price ever! Learn Generative AI for 48% less!
Get my discount+ 1
char Input
How to read a char from input? Like we use nextInt() for integer input. How can we input a character?
3 Answers
+ 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๐๐