SE450
:
Convenience
[34/57]
A good interface makes all tasks possible . . . and common tasks simple
Bad example: Reading from
System.in
before Java 5.0
BufferedReader in = new BufferedReader(new
InputStreamReader(System.in));
Why doesn't
System.in
have a
readLine
method?
After all,
System.out
has
println
.
Scanner
class fixes inconvenience