mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 18:09:38 +07:00
20 lines
384 B
Java
20 lines
384 B
Java
// "Replace with collect" "false"
|
|
import java.io.IOException;
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
|
|
public class ForEachTest {
|
|
|
|
interface A {
|
|
String ii() throws IOException;
|
|
}
|
|
private List<A> reqs;
|
|
|
|
public ForEachTest () throws IOException {
|
|
List<String> result = new ArrayList<>();
|
|
for(A val : re<caret>qs) {
|
|
result.add(val.ii());
|
|
}
|
|
}
|
|
}
|