为什么Java里的Arrays.asList不能用add和remove方法? 因为通过asList方法得到的List是只读的,所以会throw UnsupportedOperationException异常。 因为通过asList方 你的当前访问异常,请进行认证后继续阅读剩余内容。 提交