Java 8: convert List into Map
Suppose we have a List
of objects and want to convert into Map
.
Suppose we have a List
of objects and want to convert into Map
.
Understanding modifiers
in Java and its sphere of influence
Understanding while loop in Java
Understanding for loop in Java
Java object initialization and instantiation order
Understanding significance of final in Java
Understanding significance of static in Java
Today we will see how using java 8 stream flatmap method we can wind all the pairs from two Lists.
Let’s see how we can get all the unique characters from List of Strings.
Let’s understand why we need default methods which have been added in Java 8. Assume that we have an Interface with some abstract methods and it has many implementation classes. Now if we want to add new method in the Interface it means we need to change all implementations. Continue Reading