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

Backspaces in String Challenge Using Java

The challenge Assume "#" is like a backspace in string. This means that string "a#bc#d" actually is "bd" Your task is to process a string with "#" symbols. Examples Test cases The solution in Java Option 1: Option 2 (using regex): Option 3 (using substrin... (more…)

Read more »

TornadoVM: Running Java on GPUs and FPGAs

Dr Juan Fumero presented at QCon London on TornadoVM, a plug-in to OpenJDK and GraalVM that runs Java on heterogeneous hardware including Graphical Processing Units (GPUs) and Field Programmable Gate Arrays (FPGAs). Demos during the presentation showed co... (more…)

Read more »