mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-11 20:07:01 +07:00
17 lines
404 B
Java
17 lines
404 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(BufferedReader br) throws IOException {
|
|
List<String> result = new ArrayList<>();
|
|
String line = "";
|
|
wh<caret>ile(null != (line = br.readLine())) {
|
|
result.add(line.trim());
|
|
}
|
|
return result;
|
|
}
|
|
} |