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