For example I have a list of integers, as List(1,2,3,4,5,6,7)
I want to get all of the combinations of consectuive 3 numbers in Java 8 more functional way to learn Java 8. (I know how to do it in a imperative way)
So the result for above can be a list of list as:
List(List(1,2,3), List(2,3,4), List(3,4,5), List(4,5,6), List(5,6,7))
Thanks