Write a Java statement to initialize a variable square with a rectangle object whose top left corner is (10, 20) and whose sides all have length 40. Then write a statement that replaces square with a rectangle of the same size and top left corner (20, 20).
1
Expert's answer
2014-09-24T12:07:27-0400
Rectangle square = new Rectangle(10, 20, 40, 40); square = new Rectangle(20, 20, 40, 40);
Comments
Dear Suzan, You're welcome. We are glad to be helpful. If you liked our service please press like-button beside answer field. Thank you!
THAN YOU SO MUCH
Leave a comment