mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-11 02:39:37 +07:00
9 lines
235 B
Java
9 lines
235 B
Java
// "Replace with toArray" "true"
|
|
|
|
import java.util.*;
|
|
|
|
public class Main {
|
|
public CharSequence[] testToArray(List<String> data) {
|
|
return data.stream().filter(str -> !str.isEmpty()).distinct().toArray(CharSequence[]::new);
|
|
}
|
|
} |