Based on the compiler errors feedbacks, your JSDK and
JRE using the newer version while the code were in the
older version. I picked out the offended statements
for you and Charles patiently inserted in your code
for you. Thanks Charles.
There is a way to compile the older version with the
-D switch at the end of the compiler command as such
javac filename.java -D. But I prefer you to coding
with the current version or at least in the realm of
1.4.0.xx because the I/O classes are more improved
than previous version as in 1.3.0. As it a de facto
practice of software industry, the newer version
includes the bug patch of the previous one.