0

Scanner class methods

is there any method to accept char datatype

6th May 2019, 3:31 PM
Raj Shekhar
Raj Shekhar - avatar
1 Réponse
+ 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.
6th May 2019, 9:55 PM
Denise Roßberg
Denise Roßberg - avatar