Saving and Loading Shapes (30pts)
Download the following files:
- Rectangle.java (finished) - A simple rectangle class that stores width and height as integers.
- Square.java (finished) - A subclass of
Rectangle
. ASquare
is-aRectangle
with equal width and height. - ShapeUtils.java (UNFINISHED) - File I/O methods. This is the only file you will need to submit.
- ShapeUtilsTest.java - Submission tests, in case you want to test locally before submitting.
- shapes.txt - Sample text file illustrating the correct file format.
Finish the two unfinished methods in ShapeUtils.java
so that they conform to the provided Javadoc comments.
Submit your completed ShapeUtils.java
via Gradescope .