Add the following accessor methods to your Rectangle class:
public boolean contains (int x, int y)public boolean contains (Point p)
Returns whether the given Point or coordinates lie inside the bounds of this Rectangle.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.