UnsupportedOperationException when trying to remove from the list returned by Array.asList

Viewed 24199

I am using a List to hold some data obtained by calling Array.asList() method. Then I am trying to remove an element using myList.Remove(int i) method. But while I try to do that I am getting an UnsupportedOperationException. What would be the reason for this? How should I resolve this problem?

6 Answers
Related