+ 1

How to input from console a char variable??

That too in array

12th Oct 2017, 10:30 AM
Anuraj Garhwal
2 Answers
+ 18
char a=n.next().charAt(0); Declare a Scanner name n or .. and use the above sentence. (add to array using loop)
12th Oct 2017, 10:50 AM
Nithiwat
Nithiwat - avatar
+ 1
thank you so much
12th Oct 2017, 3:24 PM
Anuraj Garhwal