How to print an Array in Java
In this article, we will show you a few ways to print a Java Array. We can use JDK 1.5 Arrays.toString to print a simple array and Arrays.deepToString for 2d…
Favourite tutorials for developers
In this article, we will show you a few ways to print a Java Array. We can use JDK 1.5 Arrays.toString to print a simple array and Arrays.deepToString for 2d…
This article explains the Java 8 Stream.flatMap and how to use it. In Java 8, we can use the flatMap to convert the above 2 levels Stream into one Stream…
In Java 8, we can use the new forEach to loop or iterate a Map, List, Set, or Stream. Review the forEach method signature, it accepts a functional interface Consumer.…
This article shows how to Java 8 Files.walk to walk a file tree and stream operation filter to find files that match a specific file extension from a folder and…