how to take input from user as char in java code example Example: input char java char c = reader.next().charAt(0);