mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
9 lines
231 B
Java
9 lines
231 B
Java
// "Wrap 'integers' with 'ArrayList'" "true-preview"
|
|
import java.util.*;
|
|
|
|
class Test {
|
|
void testComparator() {
|
|
List<Integer> integers = new ArrayList<>(List.of(4, 3, 2, 1));
|
|
integers.sort(Comparator.naturalOrder());
|
|
}
|
|
} |