My Java assigments from both terms