void (String[] args) { System.out.println(test()); System.out.println(testUseName()); System.out.println(testNested()); System.out.println(testNestedRename()); System.out.println(String.join("|", testNestedUseName()).length()); IntStream.range(1, 2) // convert to loop .filter(x -> x > 0) .forEach(i -> { print(() -> "attempt #" + i); }); IntStream.range(1, 2) // convert to loop .filter(x -> x > 0) .map(x -> x + 1) .forEach(i -> { print(() -> "attempt #" + i); }); }