nnn*_*nnn 2 java
我想这样做,但是我不确定分配的参考温度是否在删除后仍然有效.
public Box removeBox(int index) { Box temp=getBoxes().get(index);//ArrayList.get getBoxes().remove(index); return temp; }
Lou*_*man 9
这很好,虽然return getBoxes().remove(index)可以在一行中做同样的事情.
return getBoxes().remove(index)
归档时间:
14 年,2 月 前
查看次数:
6350 次
最近记录: