Using the Java 8 Stream API min method, you can find the first and all smallest strings from a List. […] Continue reading »
In Java, the String class is one of the most fundamental classes, offering a wide array of methods to manipulate […] Continue reading »
In Java, to remove all special character form a given string, we can use the replaceAll(String regex, String replacement) method […] Continue reading »
In Java, we can use the overloaded method indexOf(String str, int fromIndex) of the String class to get the second […] Continue reading »
In this article, you will learn the difference between trim() and strip() methods of the String class in Java. trim() […] Continue reading »
In this short article, you will get to know about the difference between the isBlank() and isEmpty() methods of the […] Continue reading »
Java 11 (JDK 11) added a few new utility methods in the String class. These utility methods will reduce the […] Continue reading »
On this page, we will learn how to capitalize the first letter of each word in a String using Java. […] Continue reading »
In this short tutorial, you will get an idea of how to capitalize the first letter of a string. In […] Continue reading »
In this short tutorial, we’ll find all the capital letters in the given String using Java. Character.isUpperCase(char ch) returns true […] Continue reading »
This tutorial will help you to find the first recurring or repeated character in a given string. By asking these […] Continue reading »