In this post we’ll show a practical example of processing tree-like structure using streams and Java 8 flatMap.
Continue reading Java 8 flatMap practical examplejava-util
There are many ways to create Java Streams and for each of them we’ll show examples. This flexibility is needed especially when combined with flatMap!
Continue reading Create Java StreamsJava 8 Comparators with Method References in action. We mix Java 8 static and default methods with method references to sort objects by multiple fields using chained Comparators!
Continue reading Java 8 Comparators with Method ReferencesRegular Expressions are very handy for text processing. In this article we’ll show Java Regex to remove duplicated words, which is a common task.
Continue reading Java regex remove duplicated wordsA pretty cool exercise in writing Java Regular Expressions is to write Java regex matching IP Address. In this post we’ll show IP regexp and use in IP Address validator.
Continue reading Java regex matching IP AddressWe show how to remove duplicates from List in Java. Choose implementation depending on circumstances and with expected performance.
Continue reading Remove duplicates from List in JavaJava 8 regular expressions have been improved with names for capturing groups. In this post we show how to used them to improve Java code maintainability!
Continue reading Java 8 regex match group – named capturing groupsIn Java 8 remove selected item from Collection? It can be done in at least two ways both of which we are going to implement here. Let’s code!
Continue reading Java 8 remove selected item from CollectionIn Java random integers in range can be produced in many ways. In this post we show how to generate random numbers using Java 8 features!
Continue reading Java random integers in rangeHow to generate in Java 8 range of numbers? This is practical problem, often met when writing tests. In this post we’ll cover fast implementation, comfortable, and flexible with Java 8 Streams!
Continue reading Java 8 range of numbers