컬렉션 c1<MyClass>과 배열이 a<MyClass>있습니다. 나는 컬렉션에 배열을 변환하려고 c2하고 할 c1.removeAll(c2),하지만이 발생합니다 UnsupportedOperationException. 나는 것을 발견 asList()배열 클래스 반환의 Arrays.ArrayList클래스와이 클래스는 상속 removeAll()에서 AbstractList()그 구현이 발생합니다 UnsupportedOperationException.
Myclass la[] = getMyClass();
Collection c = Arrays.asList(la);
c.removeAll(thisAllreadyExistingMyClass);
요소를 제거하는 방법이 있습니까? 도와주세요