In the Scanner class, there is the nextInt() method for int the nextInt() method for double the nextDouble() method for String , and what is it for char ?
nextInt()
int
double
nextDouble()
String
char
You can take the symbol from the next method
Scanner scanner = new Scanner(System.in); char c = scanner.next().charAt(0);
Source: https://ru.stackoverflow.com/questions/957515/More articles:Telegram bot authorization via chatControl of the end of the video in unityGet table data in hibernate. Timer Problem (shedule)Key codes for different keyboardsIt is necessary to cancel autocorrection {code (); } in visual studioAuthorization in YandexQt admin rightsHow to save file contents in YAML structureJson utility serializes dictionary or better lists?Output animated gif in javaAll Articles