Files
java-core-examples/bufferedreader/output/10-scanner-swallows.txt
T

10 lines
262 B
Plaintext

-- BufferedReader --
got: line one
got: line two
IOException after 2 lines: simulated read failure (disk gone)
-- Scanner --
got: line one
got: line two
loop ended normally after 2 lines
sc.ioException() = java.io.IOException: simulated read failure (disk gone)