Scanner java close close() on the scanner to close the underlying stream.