Exercise P2.1 of page 75:

Write an AreaTester program that constructs a Rectangle object and then computes and prints its area.  Use the getWidth and getHeight methods.  Also print the expected answer.

Exercise P2.2 of page 75:

Write an PerimeterTester program that constructs a Rectangle object and then computes and prints its perimeter.  Use the getWidth and getHeight methods.  Also print the expected answer.

Exercise P2.9 of page 77:

Write a program ReplaceTester that encodes a string by replacing all letters "i" with "!"
and all letters "s" with "$".  Use the replace method.  Demonstrate that you can correctly
encode the string "Mississippi". Print both the actual and expected result.