mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-02 19:28:23 +07:00
11 lines
261 B
Java
11 lines
261 B
Java
// "Replace with collect" "true"
|
|
|
|
import java.util.List;
|
|
import java.util.stream.Collectors;
|
|
|
|
public class Test {
|
|
private static String work2(List<String> strs) {
|
|
String sb = strs.stream().collect(Collectors.joining(",", "{", "}"));
|
|
return sb;
|
|
}
|
|
} |