In addition to what copeg told you, you might also want to give this a read-through: http://www.javaprogrammingforums.com/cafe/10753-how-program-stuck-homework-read-before-posting.html

Edit- Hey...