APCS period 2 homework