
Java 8 – Reverse complete String using Stream and Collectors
In this article, we will learn how to reverse entire/complete String in Java 1.8 version using Stream and Collectors 1. Reverse using Java 8’s Stream Read More
In this article, we will learn how to reverse entire/complete String in Java 1.8 version using Stream and Collectors 1. Reverse using Java 8’s Stream Read More
In this article, we will learn how to reverse each words in a String using different approaches Reverse each words in a String : Reverse Read More
In this article, we will count and print number of repeated character occurrences in a String i.e.; Counting & Printing duplicate character occurrences : Using Java 8 Stream Read More
In this article, we will count and print number of repeated word occurrences in a text file i.e.; Counting & Printing duplicate word occurrences : Using Java 8 Read More
In this article, we will count and print number of lines and words in a text file i.e.; Counting & printing from text file: Number of lines Number Read More
In this article, we will discuss how to split a String using different delimiters and collect to any Collection or List or Set Split a 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 Sorting Arrays : Read More
In this article, we will learn how to convert Date to String in Java using different date formats Q) 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 Q) 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 in a given String Uppercase duplicate characters in a String : Steps: Initially, create 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: Steps: Create Read More