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()); // convert to loop for (int j = 1; j < 2; j++) { int x1 = j; if (x1 > 0) { print(() -> "attempt #" + x1); } } // convert to loop for (int x = 1; x < 2; x++) { if (x > 0) { int i = x + 1; print(() -> "attempt #" + i); } } }