mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-03 03:37:58 +07:00
18 lines
344 B
Java
18 lines
344 B
Java
// "Replace with collect" "true"
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
|
|
public class Test {
|
|
public static void test(List<String> data) {
|
|
List<String> result = new ArrayList<>();
|
|
for(String s : da<caret>ta) {
|
|
if(s.isEmpty()) {
|
|
break;
|
|
}
|
|
result.add(s);
|
|
}
|
|
System.out.println(result);
|
|
}
|
|
}
|