For loop – like Python range function

Java 8 (2014) has added IntStream (similar to apache commons IntRange), so you don’t need external lib now. import; IntStream.range(0, 3).forEachOrdered(n -> { System.out.println(n); }); forEach can be used in place of forEachOrdered too if order is not important. IntStream.range(0, 3).parallel() can be used for loops to run in parallel

No function matches the given name and argument types

Your function has a couple of smallint parameters. But in the call, you are using numeric literals that are presumed to be type integer. A string literal or string constant (‘123’) is not typed immediately. It remains type “unknown” until assigned or cast explicitly. However, a numeric literal or numeric constant is typed immediately. The …

Read more