The java.util.Collection class has a method with the following header:
public static List unmodifiableList(List list)
that returns an immutable copy of the list passed in as a parameter. The immutable copy throws an UnsupportedOperationException if you call any of the modifier methods in the List class. Discuss the elegance of this design.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.