Answers for "java how do you scan a char"

0

how to scan as a letter in java

Scanner scanner = new Scanner(System.in);
String str = scanner.next();
char ch = str.charAt(0);
Posted by: Guest on September-16-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language