Java II class midTerm