ASSIGNMENT 2 JAVA