java create list integer range

55

java create list integer range -

List<Integer> range = IntStream.rangeClosed(start, end)
    .boxed().collect(Collectors.toList());

Comments

Submit
0 Comments