Well I don't know what you tried. I know what you are supposed to do. If you give me code you tried then I can respond to it. If you give me code of some class someone has written, I don't know how you expect me to answer. Apparently your code differs from theirs if theirs works and yours doesn't.
Bookmarks