hasNextInt


Description:

public bool hasNextInt ()

Returns whether the next token can be parsed as an integer.

This does not consume the token. The peeked token is returned by the next call to next() or nextInt().

Example:

    var scanner = Scanner.fromString ("42 hello");
assert (scanner.hasNextInt () == true);

Returns:

true if the next token is a valid integer.