Blog Articles

JAVA – How to convert File to URL

In this tutorial, we will see "How to convert a File to URL in Java ?" While converting java.io.File to java.net.URL, we are first converting File to a URI and then URI to a URL. Convert File to URL...
Filter a Map by Keys and Values using Java 8 Stream API - Techndeck

Java 8 – Filter a Map by Key & Value

In this tutorial, we will see "How to Filter a Map by Key & Value using Java 8 Stream API?" Example 1. Filter a Map by Key [crayon-6605c2238170c290206659/] Output: [crayon-6605c2238170f632617446/]...
How to find Duplicate Element in a Stream in Java 8 - Techndeck

How to find Duplicate Element in a Stream in Java 8

In this tutorial, we will see "How to find Duplicate Element in a Stream in Java 8?". In order to find duplicates, we are going to use several techniques.  1. Find Duplicate Elements using...
Pass a Method as a Parameter or Argument in Java 8 - Techndeck

Pass Method as a Parameter in Java 8

In this tutorial, you are going to learn 'how to pass method as a parameter in Java'. and to do that, we are going to use unique concepts introduced in Java 8 and sample codes are provided below to help you understand better.  Before Java 8, there were no such...