Modify the solution for the problem stated in Practice Activities for Constructors so that the Frankenstein class implements the Comparable interface. Use the Runner class to demonstrate how two objects can be compared. Create an ArrayList of Frankenstein objects and show how the sort method works.
Modify the solution for the problem stated in Practice Activities for Constructors so that the Frankenstein class implements the Comparable interface. Use the Runner class to demonstrate how two objects can be compared. Create an ArrayList of Frankenstein objects and show how the sort method works.