Actually, no, I don't think that is in the same vein as what he is trying to do.
Also, please format posted code with a little more attention to readability and code conventions, as it will make it much easier to follow.
http://java.sun.com/docs/codeconv/html/CodeConvTOC.doc.html