Discover the best answers at Westonci.ca, where experts share their insights and knowledge with you. Our platform connects you with professionals ready to provide precise answers to all your questions in various areas of expertise. Connect with a community of professionals ready to help you find accurate solutions to your questions quickly and efficiently.

Create an interface named ComparableArea that contains one method named compareToArea(). This method should return 0 when the object has the same area as another object, –1 should be returned when the object has an area less than another object, and 1 returned otherwise. Modify the Rectangle class to implement the ComparableArea interface as well as the Comparable interface implemented in the previous review. Modify the existing client code to test the new method.