ok, i'll admit it. i came across a bit more rash than i intended. yes i also understand that people can't learn everything about java in 2 days. my reply wasn't in response to the question or its difficulty. it was directed towards the fact that this is someone's actual homework. i've been ragged on for asking question because people THINK they are homework when in reality they are not. while i am pretty confident that a lot of the questions posted here are in fact homework problems, i appreciate the effort most people make to hide that fact. when it comes down to it, if you are having problems with something like this on homework, odds are good you don't fully understand it. that is you probably need more help with it than a couple of joes at the saloon can offer. perhaps the best idea would be to talk to a professor or someone else who can help with more with the big picture. just getting through the assignment doesn't help anyone.