Open Source Your Knowledge, Become a Contributor
Technology knowledge has to be shared and made accessible for free. Join the movement.
This playground contains varies java snippets.
To reference snippets, Ctrl-f search topic with
:<tag>, such as
:Stream, and jump between them quickly.
:<Tag> name are mostly java class/interface names for search consistency.
Note that one snippet can have mutiple
array initialization - [:Array, :Arrays]
List initialization - [:Arrays, :List]
Loop a List with forEach - [:List, :ArrayList, :forEach]
HashMap example - [:Map, :HashMap]
Frequency Map - [:Map, :HashMap]
Loop a Map with forEach - [:List, :forEach]
quick array sum with Stream - [:Stream, :IntStream]
quick index range with IntStream - [:Stream, :IntStream]
stream().map().collect() example - [:Stream]
stream().filter().map().sorted().forEach() example - [:Stream]
StringBuilder example - [:String, :StringBuilder]
Lambda Expressions example - [:Lambda]
lambda operator -> body