How can i print integer form 0 .. 100
without using any kind of manul loop or recursion ?
CodePudding user response:
Simple way would be using
IntStream.range(0,101).forEach(::println)
How can i print integer form 0 .. 100
without using any kind of manul loop or recursion ?
CodePudding user response:
Simple way would be using
IntStream.range(0,101).forEach(::println)