Correct, Annie. But Ben's point is that the JavaRanch is a place to come and learn Java. It is not an "answer mill" where people can come and get others to do their homework for them. And as such, there really is no appropriate forum for this poster's questions.
So rather than just propogate this to multiple forums, I'm going to close this topic.
gargi, if you really would like help in working through these problems, you need to work through them to the best of your abilities on your own, and post to one of the Java in General forums with questions on the aspects that have you stumped. You've got to put forth your own effort, but once you do, you will find people more than willing to help you help yourself. [ April 14, 2005: Message edited by: Bear Bibeault ]