mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 16:39:37 +07:00
13 lines
321 B
Java
13 lines
321 B
Java
// "Replace with collect" "true"
|
|
|
|
import java.util.List;
|
|
import java.util.stream.Collectors;
|
|
|
|
public class Test {
|
|
static String test(List<String> list) {
|
|
String sb;
|
|
System.out.println("hello");
|
|
sb = list.stream().filter(s -> !s.isEmpty()).collect(Collectors.joining("", "", "xyz"));
|
|
return sb;
|
|
}
|
|
} |