mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 18:09:38 +07:00
16 lines
344 B
Java
16 lines
344 B
Java
// "Replace with collect" "false"
|
|
import java.util.*;
|
|
|
|
public class Collect {
|
|
public static void collectWithLambda(List<String> test) {
|
|
List<String> result = new ArrayList<>();
|
|
Runnable r = () -> {
|
|
for(String str : te<caret>st) {
|
|
result.add(str.trim());
|
|
}
|
|
};
|
|
r.run();
|
|
System.out.println(result);
|
|
}
|
|
}
|