How to input a character in scanner class. Pls give me the ans of this question..
Answers
Answered by
0
please mark me brainliest
please follow me
Answered by
0
Answer:
Scanner class in Java. We need to use the next() method to read a single character as a string and then use charAt(0) to get the first character of that string. Scanner scanner = new Scanner(System.in); char ch = scanner. next().
Similar questions