First, don't get discouraged because that's all you've managed to come up with in a few days (unless it's due tomorrow). If you're just starting programming, expect it to be a sharper learning curve than that of a blind and deaf mute attempting to play Dominions 3. Then, when things start clicking together for you, you'll be pleasently surprised.
I second ano's question, though. We get the assignment and we get that you're having trouble with it, but it's not clear exactly what you're struggling with.
I should stress that while I did take a Java course several years ago, I haven't touched it since. Almost every line of code I write is C++. But I'll help where I can.