Re: Why does this work? beginning question

From: ComieCreep (
Date: 01/02/05

Date: Sat, 1 Jan 2005 20:16:43 -0800

> The finally clause will 'always' be executed,
> if (dis !=null)
> dis.close();
> which basically says if there is a stream it must be open, since
> instantiation opens the stream, so we close it.
> Also note the readLine method of DataInputStream is deprecated, see the
> for the alternative.
> --
> Mike W
Thanks Mike for your help. I knew I was missing something. I also didn't
understand the compiler message about "deprecated methods" Now I do. I was
able to read the Docs and replaced the DataInputStream with a
BufferedReader. I think I made some progress today with your assistance.