mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-01 18:58:31 +07:00
15 lines
384 B
Java
15 lines
384 B
Java
// "Replace with collect" "true"
|
|
|
|
import java.io.BufferedReader;
|
|
import java.io.IOException;
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
import java.util.stream.Collectors;
|
|
|
|
public class Main {
|
|
List<String> test(BufferedReader br) throws IOException {
|
|
List<String> result;
|
|
result = br.lines().map(String::trim).collect(Collectors.toList());
|
|
return result;
|
|
}
|
|
} |