mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-02 03:07:47 +07:00
18 lines
421 B
Java
18 lines
421 B
Java
// "Replace with collect" "true"
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
|
|
public class Main {
|
|
public List<Runnable> test(List<String> list) {
|
|
List<Runnable> result = new ArrayList<>();
|
|
for(String s : li<caret>st) {
|
|
Runnable r = () -> {
|
|
String str = s;
|
|
if (str.isEmpty()) str = "none";
|
|
System.out.println(str);
|
|
};
|
|
result.add(r);
|
|
}
|
|
return result;
|
|
}
|
|
} |