Memo to silently write the source that seems to be usable and the result of compilation execution-java

sample


Stream.iterate( 5, i -> i++ )
	              .limit(10)
	              .forEach(System.out::print);

Compile → Run: Result 5555555555

sample


	        Stream.iterate( 0, i -> i++ )
	              .limit(5)
	              .forEach(System.out::println);

Compile → Run: Result 0 0 0 0 0

sample


 	          Stream.iterate( 1, i -> ++i )
	              .limit(10)
	              .forEach(System.out::print);

Compile → Run: Result 12345678910

Recommended Posts

Memo to silently write the source that seems to be usable and the result of compilation execution-java
[Java] Memo on how to write the source
Be sure to compare the result of Java compareTo with 0
[Rails] How to get the URL of the transition source and redirect
This and that of the JDK
A memo that was soberly addicted to the request of multipart / form-data
Be absolutely careful when putting the result of and / or in a variable!
JDBC promises and examples of how to write
[Java] Classification memo of compilation error and run-time error
How to display the result of form input
A memo about the types of Java O/R mappers and how to select them
Try to write the source that causes the ORA-1000 error with the bind variable SQL using Java's PreparedStatement and find a workaround.