JAVA HW3 [zipper]