
Java 8 – Find First and Last entries in a Map or HashMap
In this article, we will discuss how to get First and Last entries from a Map or HashMap using Java 8 Streams API Find First Read More
In this article, we will discuss how to get First and Last entries from a Map or HashMap using Java 8 Streams API Find First Read More
In this article, we will discuss how to get First and Last elements from a List or an ArrayList using Java 8 Streams API Find Read More
In this article, we will discuss how to sort Arrays in both ascending and descending order of Integer, String and Employee objects 1. Sorting Arrays Read More
In this article, we will learn how to convert Date to String in Java using different date formats 1. What is the need of converting Read More
In this article, we will learn how to convert String to Date in Java using different date formats 1. What is the need of converting Read More
In this article, we will discuss how to remove white-spaces in a String. String can have trailing/leading white-spaces as well as white-spaces in-between String. Remove Read More
In this article, we will discuss different ways to convert Stream to List. Stream to List : Using Collectors.toList() method Using Collectors.toCollection() method Iterate Stream Read More
In this article, we will discuss different ways to split String using pipe(|) as delimiter in Java Various ways to split String with pipe(|) as Read More
In this article, we will discuss how to sort TreeSet elements in descending order using Comparator interface 1. Comparator interface Compares its two arguments for order Read More
In this article, we will discuss how to sort LinkedList elements in ascending & descending order using Collections.sort() method 1. Collections.sort() method Sorts the specified Read More
In this article, we will discuss Stream’s mapToDouble() method in detail with examples and explanation 1. Stream mapToDouble() method : This Stream method is an Read More
In this article, we will discuss and execute simple program to check whether 2 Strings are Anagrams or not Anagrams: Anagrams means 2 different strings Read More
In this article, we will discuss steps and execution program to uppercase all duplicate characters/occurrences from given String Read Java 1.8 Features with examples Uppercase duplicate character in String Read More
In this article, we will discuss steps and execution program to delete/remove all duplicate characters/occurrences from given String Remove duplicate characters from String in Read More
In this article, we will discuss various ways to iterate through TreeMap. We will list down various Map implementation classes and their key property like element/objects storing-order 1. Read More
In this article, we will discuss various ways to iterate through TreeSet – 3 ways Various ways to iterate through TreeSet: Enhanced for-loop introduced in Java 1.5 version Iterating Read More
In this article, we will discuss a sample program on String which is commonly asked to test skill on String What will be output Read More
In this article, we will discuss how to sort collection of, String StringBuffer StringBuilder In Collection framework hierarchy, below classes sorts value/objects stored by-default in Read More
In this article, we will discuss how to remove leading and trailing whitespace from a JavaScript String Often JavaScript is used to display string returned Read More
In this article, we will discuss how to left pad with zeroes to a String. Actually, there are number of options and library available for Read More