java how to read character input instantly code example Example: input char java char c = reader.next().charAt(0);