+ 1

Can character be taken input using scanner class?

19th Jul 2016, 12:08 PM
Athul Krishna K P
4 Respostas
+ 2
Yes you need to do something like this. char variableName = inputStreamName.next().charAt(0); More explanations about that statement can be answered on stack overflow website
19th Jul 2016, 2:51 PM
Ousmane Diaw
+ 2
thanks
19th Jul 2016, 4:28 PM
Athul Krishna K P
+ 1
yes
19th Jul 2016, 12:40 PM
Abhishek dubey
Abhishek dubey - avatar
0
Yes, all types in fact... long, int, byte etc
21st Jul 2016, 5:18 AM
Eric Gitangu
Eric Gitangu - avatar