boolean hasNextInt()
Returns true if the next token in this scanner's input can be interpreted as an int value in the default radix using the nextInt() method.
boolean hasNextInt(int radix)
Returns true if the next token in this scanner's input can be interpreted as an int value in the specified radix using the nextInt() method.
boolean hasNextLine()
Returns true if there is another line in the input of this scanner.
boolean hasNextLong()
Returns true if the next token in this scanner's input can be interpreted as a long value in the default radix using the nextLong() method.
boolean hasNextLong(int radix)
Returns true if the next token in this scanner's input can be interpreted as a long value in the specified radix using the nextLong() method.
boolean hasNextShort()
Returns true if the next token in this scanner's input can be interpreted as a short value in the default radix using the nextShort() method.
boolean hasNextShort(int radix)
Returns true if the next token in this scanner's input can be interpreted as a short value in the specified radix using the nextShort() method.
IOException ioException()
Returns the IOException last thrown by this Scanner's underlying Readable.
Locale locale()
Returns this scanner's locale.
MatchResult match()
Returns the match result of the last scanning operation performed by this scanner.
String next()
Finds and returns the next complete token from this scanner.
String next(Pattern pattern)
Returns the next token if it matches the specified pattern.
String next(String pattern)
Returns the next token if it matches the pattern constructed from the specified string.
BigDecimal nextBigDecimal()
Scans the next token of the input as a BigDecimal.
BigInteger nextBigInteger()
Scans the next token of the input as a BigInteger.
BigInteger nextBigInteger(int radix)
Scans the next token of the input as a BigInteger.
boolean nextBoolean()
Scans the next token of the input into a boolean value and returns that value.
byte nextByte()
Scans the next token of the input as a byte.
byte nextByte(int radix)
double nextDouble()
Scans the next token of the input as a double.
float nextFloat()
Scans the next token of the input as a float.
int nextInt()
Scans the next token of the input as an int.
int nextInt(int radix)
Scans the next token of the input as an int.
String nextLine()
Advances this scanner past the current line and returns the input that was skipped.
long nextLong()
Scans the next token of the input as a long.
long nextLong(int radix)
Scans the next token of the input as a long.
short nextShort()
Scans the next token of the input as a short.
short nextShort(int radix)
Scans the next token of the input as a short.
int radix()
Returns this scanner's default radix.
void remove()
The remove operation is not supported by this implementation of Iterator.
Scanner reset()
Resets this scanner.
Scanner skip(Pattern pattern)
Skips input that matches the specified pattern, ignoring delimiters.
Scanner skip(String pattern)
Skips input that matches a pattern constructed from the specified string.
String toString()
Returns the string representation of this Scanner.
Scanner useDelimiter(Pattern pattern)
Sets this scanner's delimiting pattern to the specified pattern.
Scanner useDelimiter(String pattern)
Sets this scanner's delimiting pattern to a pattern constructed from the specified String.
Scanner useLocale(Locale locale)
Sets this scann