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.
But you're a bit late. People have been posting this exact question here for the last week, and there's a lot of them which already have the answer. So just click on the "Search" link and search for 101, and you'll find a lot of other people interested in exactly that code. Maybe they are even in the same class as you.