Java 8 Functional Interfaces is very important concept, because they are heavily used with Lambda Expressions and Streams to simplify code. Let’s take a deep dive!
In Java 8 interfaces default and static methods are major changes that allow to extend existing code without breaking anything. It should be the first step into Java 8.
Until Java 7 there was no simple and effective way to generate random numbers concurrently. Here we show ThreadLocalRandom to generate random numbers in a thread-safe way.
Java 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!
In 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!
One way to prevent concurrent modifications from different Threads is to given them their own local data. Java ThreadLocal allows to do thread data separation.
In 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!
How 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!
Java interview question: In Java 8 count frequency of chars in a String. In this post we’ll show two implementations – using Map.merge() and Streams and Collectors.
In Java 8 count frequency of numbers/elements/objects. You may encounter this problem on Java job interviews. Here we implement it using Java 8 Collectors.