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
Printable View
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
Maybe by using code? :p
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).
Man, take a joke. :rolleyes:
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);