Java 8: Creating a custom Collector for your Stream

In the previous post we looked at different implementations of the Collector interface. As you saw, there are a wide range of collectors available out of the box. However — sometimes you need something special that you simply have to make… Read more

Similar

Wrapping up Java 9 new Features

Java 9 comes with a rich feature set. Although there are no new language concepts, new APIs and diagnostic commands will definitely be interesting to developers. In this write up we’re going to have quick, high level look at some of the new features; Mod... (more…)

Read more »

The “Split Strings” Challenge Using Java

The challenge Complete the solution so that it splits the string into pairs of two characters. If the string contains an odd number of characters then it should replace the missing second character of the final pair with an underscore (‘_’). Examples: Tes... (more…)

Read more »