mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-23 07:14:21 +07:00
12 lines
334 B
Java
12 lines
334 B
Java
import java.util.List;
|
|
|
|
public class StreamExtract {
|
|
void test(List<String> list) {
|
|
list.stream().map(s -> String.format("[%s]", s)).forEach(format -> System.out.println(
|
|
new StringBuilder().append(format)
|
|
.append("oops")
|
|
.append("argh")
|
|
));
|
|
}
|
|
}
|