Programming in Java Assignment III