- pattern
- the string specifying the pattern to scan for
Documentation for this section has not yet been entered.
Type Reason Java.Lang.IllegalStateException if the Scanner has been closed.
Returns true if this Scanner has one or more tokens remaining to parse and the next token matches a pattern compiled from the given string. This method will block if the data is still being read. This call is equivalent to hasNext(Pattern.compile(pattern)).