Hello,
How would I write a program which prints out two rectangles and the rectangle created by the intersection of the original two?
Thank You For Your Help
Hello,
How would I write a program which prints out two rectangles and the rectangle created by the intersection of the original two?
Thank You For Your Help
Try here for a Java board - http://forum.java.sun.com/
And don't worry about Chris...he's just Chris (he can't help it).
Why don't you.
Here's the idea-
Then output the rectangles however you want.Code:Rectangle Rect1 = new Rectangle(0, 0, 50, 25); Rectangle Rect2 = new Rectangle(10, 10, 50, 25); Rectangle RectIntersect = Rect1.intersection(Rect2);
Last edited by taylorguitarman; 02-06-2002 at 04:02 AM.