0
Basic in java
Hello, so I learned to how obtain a number from the user... number = in.nextInt(); My question is, how do I get the user to input a char? I have noticed there isn't a command which approves nextChar Thanks :)
4 Answers
+ 5
by using .next() instead of .nextint()
0
hi
0
just use in.next()
char = in.next();
0
Thank you guys!