JAVA Assignment 3