mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-03 19:58:23 +07:00
25 lines
518 B
Java
25 lines
518 B
Java
// "Replace with collect" "true"
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
|
|
public class Main {
|
|
private List<String> test(String[] list, int limit) {
|
|
List<String> result = new ArrayList<>();
|
|
List<String> other = new ArrayList<>();
|
|
System.out.println("hello");
|
|
for(String s : li<caret>st) {
|
|
if (s == null) {
|
|
continue;
|
|
}
|
|
result.add(s+s);
|
|
if(result.size() != limit) {
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
result.sort(null);
|
|
return result;
|
|
}
|
|
}
|