This week's book giveaway is in the Java in General forum. We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line! See this thread for details.
Your question is very vague. You need to tell the details. What have you tried? What problems are you running into? You should also be aware that JavaRanch is not a code mill. While we will be glad to help you with any problems you are having, it's still up to you to do the work.