摘要:
Java列表remove() 时报出 UnsupportedOperationException 的错误 java.lang.UnsupportedOperationException at java.util.AbstractList.remove(AbstractList.java:161) a 阅读全文
摘要:
如何在没有使用中间变量的情况下交换两个变量的值 长话短说,直接看代码 int x = 1; int y = 9; // 经常使用的交换 x,y 值的方法 , 定义中间变量 z int z = x ; x = y; y = z; // 采用数学逻辑 x = x + y; y = x - y; x = 阅读全文