First foray into programming with java