AssignmentTwo for JAVA Course