|--------------+---------------+------------------------------------------------| | next() | hasNext() | is there another token to read? | |--------------+---------------+------------------------------------------------| | nextLine() | hasNextLine() | is there another line to read? | |--------------+---------------+------------------------------------------------| | nextInt() | hasNextInt() | is there another token to read | | | | and can the next token be treated as an int? | |--------------+---------------+------------------------------------------------| | nextDouble() | hasNextDouble | is there another token to read | | | | and can the next token be treated as a double? | |--------------+---------------+------------------------------------------------|