mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-02 03:07:47 +07:00
21 lines
514 B
Java
21 lines
514 B
Java
// "Replace with collect" "true"
|
|
|
|
import java.io.BufferedReader;
|
|
import java.io.IOException;
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
|
|
public class Main {
|
|
List<String> test(List<BufferedReader> readers) throws IOException {
|
|
for(BufferedReader br : readers) {
|
|
List<String> result = new ArrayList<>();
|
|
String line = "";
|
|
wh<caret>ile (null != (line = br.readLine())) {
|
|
result.add(line.trim());
|
|
}
|
|
if(result.size() > 10) {
|
|
return result;
|
|
}
|
|
}
|
|
}
|
|
} |