Check out example codes for "java input character". It will help you in understanding the concepts better.

Code Example 1

import java.util.Scanner;
Scanner inp = new Scanner(System.in);
char character = inp.next().charAt(0);

Code Example 2

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

Learn ReactJs, React Native from akashmittal.com