ITC322 assignment one data structure Java