Java 8 – Optional class in detail
In this article, we will discuss Optional class in detail and understand why it is needed/introduced in Java 1.8 version and how to avoid/handle (or Read More
In this article, we will discuss Optional class in detail and understand why it is needed/introduced in Java 1.8 version and how to avoid/handle (or Read More
In this article, we will see how to reverse a String in place using traditional & Java 8 Stream approaches 1. Traditional approach : ReverseStringInPlace.java Read More
In this article, we will discuss how to find and print common & uncommon elements from 2 Lists (or ArrayList) There are different ways to Read More
In this article, we will discuss how to check if a String is an Integer or not using different String literals Check String is an Read More
In this article, we will discuss how to convert Comma-separated string values into List or specifically ArrayList We will illustrate 2 examples for converting comma-separated Read More
In this article, we will discuss how to compare 2 Date instances using compareTo() method 1. Date.compareTo() method : 2. Date.compareTo() example : Compare2Dates.java Output Read More
In this article, we will discuss how to convert YAML file to XML file using ObjectMapper or Jackson library 1. Required libraries : 1.1 Maven Read More
In this article, we will discuss how to convert XML file to YAML file using ObjectMapper or Jackson library 1. Required libraries : 1.1 Maven Read More
In this article, we will discuss how to pretty print JSON using Jackson or ObjectMapper 1. Required libraries : 1.1 Maven Co-ordinates : 1.2 JAR Read More
In this article, we will discuss how to pretty print JSON using JSONObject 1. Required libraries : 1.1 Maven Co-ordinates : 1.2 JAR files to Read More
In this article, we will discuss how to convert XML file to JSON file using ObjectMapper or Jackson library 1. Required libraries : 1.1 Maven Read More
In this article, we will discuss how to convert JSON file to XML file using ObjectMapper or Jackson library 1. Required libraries : 1.1 Maven Read More
In this article, we will discuss how to convert JSON file to XML file using JSONObject 1. Required libraries : 1.1 Maven Co-ordinates : 1.2 Read More
In this article, we will discuss how to convert XML file to JSON file using JSONObject 1. Required libraries : 1.1 Maven Co-ordinates : 1.2 Read More
In this article, we will learn how to remove 1st and last character from a String using String‘s methods and StringBuffer/StringBuilder method in different ways Read More
In this article, we will learn how to find/get 1st and last character in a String using String‘s methods & StringBuffer/StringBuilder method in different ways Read More
In this article, we will learn how to iterate over char[] Arrays in different ways Iterate over char[] Arrays : Using Java 8 Stream.chars() method Read More
In this article, we will learn how to convert Roman letters (I, II, III, IV, V, VI, etc.,) into Integer (1, 2, 3, 4, 5, Read More
In this article, we will learn how to count length of last word in a String using String‘s length() method Count length of Last word Read More
In this article, we will learn how to remove last comma (,) from a String using String‘s substring() method and Java 8 Stream Remove last Read More