0

how to declare a variable char?? java

15th Apr 2017, 6:44 PM
Nada
Nada - avatar
4 odpowiedzi
+ 1
char YouNameItSon = new char; Edit: For user input, use the Scanner class (first node in the lesson). The method is nextChar.
15th Apr 2017, 6:49 PM
The Guy
The Guy - avatar
0
I just found it,, char a = in.next ().charAt (0);
15th Apr 2017, 6:50 PM
Nada
Nada - avatar
- 1
I want the user input the char
15th Apr 2017, 6:47 PM
Nada
Nada - avatar