Code wont run. I know there is no main class, but this is from a book. Is it wrong??

Printable View