As you can see, I am totally lost on what to do
To be blunt with you, nothing there demonstrates how 'lost' you are, only that you've copied down your assignment specification and posted an extremely lacking segment of code.
As I'm sure you're already aware, having posted many times in the past, this is
not a homework service and no-one here is going to complete your assignment for you.
Suggested Reading:
http://www.javaprogrammingforums.com...e-posting.html
Now with that in mind, I suggest you re-word your question to something which could allow us to help you with a real problem, E.g. Exceptions you are receiving or program logic you can't quite get your head around.