Implement a method replace for the ADT bag that replaces and returns any object
Chapter 2, Problem 2(choose chapter or problem)
Implement a method replace for the ADT bag that replaces and returns any object currently in a bag with a given object.
Unfortunately, we don't have that question answered yet. But you can get it answered in just 5 hours by Logging in or Becoming a subscriber.
Becoming a subscriber
Or look for another answer