Some of my code for previous assignments. All in Java