This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
This question ought to have gone on the beginners' forum. I presume that means you haven't got a book with examples in. There are examples on Javaranch here, or have a look at these FAQ, especially No 2 and No 22. See whether those links are any use.