我创建了一个ArrayList
大约 30 000 个值的值,经过排序后,我有很多连续值,例如:
22001 22002 22003 22004 22010 22011 22020
我想拥有:22001 22004 22010 22011 22020
ArrayList<Long> l = new ArrayList<Long>(); // with my values
Collections.sort(l);
ArrayList<Long> liste = new ArrayList<Long>();