🌈 搜索
📅  最后修改于: 2022-03-11 14:52:16.385000             🧑  作者: Mango
public ArrayList reverse(ArrayList arrayList) { if(arrayList.size() > 1) { Object value = arrayList.remove(0); reverse(arrayList); arrayList.add(value); } return arrayList; }