解决Arrays.asList()使用remove()、add()方法时报java.lang.UnsupportedOperationException
ListstrList=Arrays.asList("a","b","c");if(strList.contains("a")){strList.remove("a");}以上代码对list.remove()会报java.lang.UnsupportedOperationException,开始查找原因:aslist()是newArrayListpublicstaticListasList(T..