Scanner (Java Platform SE 7 ) - Oracle Help Center
Returns the match result of the last scanning operation performed by this scanner. This method throws IllegalStateException if no match has been performed, or if the last match was not successful. The various nextmethods of Scanner make a match result ava...