Java syntax

home work 2