How do I get this code to work in netbeans?

Printable View