Where exactly are you stuck? What exactly are you confused about?

Does this code compile? Does it run?

By the way, I'm moving this from the tutorial forum to the help forum.