how to get single char input java code example Example: input char java char c = reader.next().charAt(0);