Programming 2 - Java Assignment