Your Guide to Java Streams [Tutorials and Articles]
Join the DZone community and get the full member experience.Join For Free
In this edition of "Best of DZone," we've compiled our best tutorials and articles on one of the most popular APIs in Java, Streams. Whether you're a beginner just looking to bring in some elements of functional programming into a Java application, or a Streams vet, we've got your back!
Before we begin, we'd like need to thank those who were a part of this article. DZone has and continues to be a community powered by contributors like you who are eager and passionate to share what they know with the rest of the world.
Let's get started!
A Guide to Streams: In-Depth Tutorial With Examples by Eugen Paraschiv — Java 8 and streams: A match made in heaven, but it can be a little overwhelming. In this post, we take an in-depth look at this combination with some examples.
Dipping Into Java 8 Streams by Dan Newton — With a working knowledge of lambda expressions and method references, you can see how streams enable you to work with Collections while efficiently adding logic.
Java Streams Overview, Part 1 and Part 2 by Zoltan Raffai — Get started working with Streams and learn everything you need to get started with basic classes, reading and writing operations, and working with errors.
A Java 8 Streams Cookbook by Martin Farrell — If you're looking for a quick breakdown of Streams, look no further. This cookbook covers Streams' chief advantages, its operations, and a comprehensive example.
Convert a List to a Comma-Separated String in Java 8 by Mario Pio Gioiosa — This quick tutorial shows you how to use streams in Java to convert the contents of a list to a comma-separated string in Java 8.
Working With Files
Java 8 Stream and Lambda Expressions – Parsing File Example by Eyal Golan — See a common use case for Streams and Lambda Expressions in this article.
Streams and Collectors
How to Transform Elements In a Stream Using a Collector by Hubert Klein Ikkink — Learn more about how to transform elements in a Stream using Java Collectors.
The Ultimate Guide to the Java Stream API groupingBy() Collector by Grzegorz Piwowarek — Still a bit puzzled by what the
groupingBy()collector can do in the Java Stream API? Check out this guide on using the
groupingBy()collector to its fullest potential.
Java Lambda Streams and Groovy Closures Comparisons by Alex Staveley — Want to learn more about the difference between in lambda streams in both Java and Groovy? Check out this post to learn more about the differences between them.
Become a Master of Java Streams, Part 1: Creating Streams, Part 2: Intermediate Operations, Part 3: Terminal Operations, and Part 4: Database Streams, Part 5: Turn Joined Database Tables Into a Stream, and Part 6: Creating a New Database Application Using Streams by Per-Åke Minborg and Julia Gustafsson — Want to become a Java Streams Master?
Be a Part of the Conversation!
Think we missed something? Want to contribute? Let us know in the comments below... or, join the conversation by becoming a member of our community of thousands of developers eager to share their knowledge and passion for programming with others.
Opinions expressed by DZone contributors are their own.