Java Exercises 12 to 21