Is there a short and sweet way to generate a List, or perhaps an Integer[] or int[], with sequential values from some
List
Integer[]
int[]
With Java 8 it is so simple so it doesn't even need separate method anymore:
List range = IntStream.rangeClosed(start, end) .boxed().collect(Collectors.toList());