Lecture 24
10
I/O programming
•I/O = input/output
•I/O is hard
–deals with real world beyond programmers control
–Output easier than input (programmer knows more)
–System.out.println() is straightforward
–Terminal readLine() wraps hard to use System.in
•java.io package provides lots of useful classes
•I/O programming may throw many Exceptions
•Even good tools are hard to use when topic is hard
•Count on borrowing from code that works