bhatt.umang7, welcome to the forums. Please read the forum rules, and I highly recommend reading the following: http://www.javaprogrammingforums.com/cafe/9544-problem-spoon-feeding.html