Generic Data Structures - Exercises: 22.17, 22.22 (Java - How to Program 9E, Deitel)