java scanner hasNext only look at the first character code example Example: input char java char c = reader.next().charAt(0);