java syntax homework