mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-19 10:20:56 +07:00
14 lines
355 B
Java
14 lines
355 B
Java
// "Replace Stream API chain with loop" "true-preview"
|
|
|
|
import java.util.IntSummaryStatistics;
|
|
import java.util.stream.IntStream;
|
|
|
|
public class Main {
|
|
public static IntSummaryStatistics test() {
|
|
return IntStream.range(0, 100).limit(50).summaryStatis<caret>tics();
|
|
}
|
|
|
|
public static void main(String[] args) {
|
|
System.out.println(test());
|
|
}
|
|
} |