mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 15:50:53 +07:00
19 lines
408 B
Java
19 lines
408 B
Java
import java.util.*;
|
|
|
|
class MyTest {
|
|
|
|
{
|
|
Set<Integer> set = new TreeSet<>(Comparator.comparing(b -> ""));
|
|
Set<Integer> set1 = new TreeSet<>(Comparator.comparing(b -> b != null ? "" : ""));
|
|
}
|
|
|
|
|
|
void f(List<String> l) {
|
|
setCategories(l.stream().toArray(size -> new String[size]));
|
|
setCategories(l.stream().toArray(String[]::new));
|
|
}
|
|
|
|
private void setCategories(String... strings) {}
|
|
|
|
}
|