Check out example codes for "scanner methods java char". It will help you in understanding the concepts better.

Code Example 1

char tempPref = get.next().charAt(0);

Code Example 2

Scanner scanner = new Scanner(System.in);
char ch = scanner.next().charAt(0);

Learn ReactJs, React Native from akashmittal.com