mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
9 lines
259 B
Java
9 lines
259 B
Java
import java.util.stream.*;
|
|
class Foo {
|
|
{
|
|
Stream.of(1, 2, 3).filter(x -> x % 2 == 0)/*<# Stream<Integer> #>*/
|
|
.map(x -> x * 2)/*<# Stream<Integer> #>*/
|
|
.map(x -> "item: " + x)/*<# Stream<String> #>*/
|
|
.forEach(System.out::println);
|
|
}
|
|
} |