mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-03 11:47:50 +07:00
16 lines
334 B
Java
16 lines
334 B
Java
// "Replace with toArray" "true"
|
|
import java.util.*;
|
|
|
|
public class Test {
|
|
Object[] test(List<String[]> list) {
|
|
List<Object> result = new LinkedList<>();
|
|
for(String[] str : li<caret>st) {
|
|
if(str != null) {
|
|
Collections.addAll(result, str);
|
|
}
|
|
}
|
|
result.sort(null);
|
|
return result.toArray();
|
|
}
|
|
}
|