The List collection uses the add and remove methods to report UnsupportedOperationException.
Original code:
Cause of Error
This List is initialized by Arrys.asList(). The Arrays class inherits the AbstractList abstract class. It only implements the get/set method, but does not implement the add/remove method. Solution End
Sahua
. yeah yeah yeah