Does Java have an equivalent to Python\'s range(int, int) method?
range(int, int)
I know this is an old post but if you are looking for a solution that returns an object stream and don't want to or can't use any additional dependencies:
Stream.iterate(start, n -> n + 1).limit(stop);
start - inclusive stop - exclusive