Is there any syntax/package allowing quick filling of java arrays with ranges of numbers, like in perl?
e.g.
int[] arr = new int[1000]; arr=(1..500,3
Another useful and not widely known Java 8 solution for existing arrays:
int[] array = new int[10]; Arrays.setAll(array, i -> i + 1);