- pattern
- the pattern to find in the input.
Documentation for this section has not yet been entered.
Type Reason Java.Lang.IllegalStateException if the Scanner is closed.
Tries to find the pattern in the input. Delimiters are ignored. If the pattern is found before line terminator, the matched string will be returned, and the Scanner will advance to the end of the matched string. Otherwise, null will be returned and the Scanner will not advance. When waiting for input, the Scanner may be blocked. All the input may be cached if no line terminator exists in the buffer.