Write a Javadoc for Ex 16.2-6