Exercises
Add the following methods to the class Rectangle.
int area()
return the area of the rectangle
boolean isSquare()
test whether the rectangle is a square
Define the class Queue by modifying the class Stack.
Previous slide
Back to first slide
View graphic version