0
Scanner class methods
is there any method to accept char datatype
1 Answer
+ 2
In Java? No.
You can use Scanner.next(). This reads a String until a WhiteSpace.
Then you can check if the length of the string = 1.
is there any method to accept char datatype