I would like to know when I can use IntStream.range effectively. I have three reasons why I am not sure how useful IntStream.range is.
IntStream.range
(Ple
IntStream.range returns a range of integers as a stream so you can do stream processing over it.
like taking square of each element
IntStream.range(1, 10).map(i -> i * i);