Showing posts with label loop. Show all posts
Showing posts with label loop. Show all posts
03:29

Java8 : Alternative solutions to the traditional loop

In this post we’ll look at some alternative solutions to the traditional loop. The great thing about the new functional features in Java 8, is that it allows us to say what we want to be done instead of saying how to do it. This is where loops fall short. Sure loops are flexible, but this flexibility doesn’t come without a price. A return, break or continue dramatically changes how the loop will act, forcing us not only to understand what the code is trying to achieve, but also understand how the loop works.

Let the coding begin!

This time we’re going to work with articles. An article has a title, an author and several tags.
[.....]

Previous Post Older Posts Home