New to java - class not working

Printable View