rendered paste bodypublic class Rectangle{ private double height; private double width; public Rectangle(double height,double width) { this.height=height; this.width=width; } public double getHeight() { return this.height; } public double getWidth() { return this.width; } public void setHeight(double newHeight) { this.height=newHeight; } public void setWidth(double newWidth) { this.width=newWidth; } public String toString() { return "Height:"+this.height+" "+"Width:"+this.width; } public void IncreaseHeight(double by) { this.height=this.height+by; } public void equalz(Rectangle rec) { if(this.width*this.height>rec.width*rec.height) System.out.println("rec>rec1"); else System.out.println("rec<rec1"); }}