Hello Andrew, welcome to the Java Programming Forums.

What is your problem exactly? You need to break it down for us and take it one step at a time.

I suggest reading - Short, Self Contained,...