mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
13 lines
266 B
Plaintext
13 lines
266 B
Plaintext
import java.util.*;
|
|
|
|
class A {
|
|
void foo(List<String> l) {
|
|
Object[] a = l.toArray();
|
|
Arrays.sort(a);
|
|
ListIterator<String> i = l.listIterator();
|
|
for (int j=0; j<a.length; j++) {
|
|
i.next();
|
|
i.set((String)a[j]);
|
|
}
|
|
}
|
|
} |