Java HW 2