public static void sort(java.util.List <T> list) { Object[] a = list.toArray(); Array.Sort <Object>(a); ListIterator <T> i = list.listIterator(); for (int j = 0; j < a.Length; j++) { i.next(); i.set((T)a[j]); } }
public override E set(int location, E obj) { ListIterator <E> it = listIterator(location); if (!it.hasNext()) { throw new java.lang.IndexOutOfBoundsException(); } E result = it.next(); it.set(obj); return(result); }
public void set(E obj) { iterator.set(obj); }