java-Simple way to generate range values with java
1. The purpose of this post
This post would demo how to use java 8 streams to do generate range values with java.
2. Environments
- Java 1.8+
3. The demo
3.1 The old way
3.2 Use java 8 IntStream
4. Conclusion
You can get more information by view the java 8 IntStream API document.