mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-02 03:07:47 +07:00
14 lines
313 B
Java
14 lines
313 B
Java
// "Replace Stream API chain with loop" "true"
|
|
|
|
import java.util.OptionalInt;
|
|
import java.util.stream.IntStream;
|
|
|
|
public class Main {
|
|
private static OptionalInt test() {
|
|
return IntStream.of().redu<caret>ce((a, b) -> a*b);
|
|
}
|
|
|
|
public static void main(String[] args) {
|
|
System.out.println(test());
|
|
}
|
|
} |