Java 8 – How to Reverse a String in place ?
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 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 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 convert duplicate characters/occurrences to Uppercase letter in a String In one of the previous article, we already 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 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 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 convert first character of every word to uppercase For conversion, we will use either StringTokenizer class split() Read More
In this article, we will discuss difference between capacity() and length() methods of StringBuffer in detail with example Often times, this two methods get confused Read More
In this article, we will discuss how to append newline to StringBuffer There are ways to append newline to StringBuffer or StringBuilder object, we will Read More
In this article, we will discuss how to clear or delete StringBuffer contents 1. Clearing StringBuffer contents: Here, Start-index for the contents i.e.; 0 end-index Read More
In this article, we will discuss difference between String, StringBuffer and StringBuilder in detail with example on performance Let us move forward and discuss difference Read More
In this article, we will discuss difference between StringBuffer and StringBuilder in detail with example Both are mutable sequence of characters to replace String’s immutability Read More
In this article, we will discuss how to convert String to StringBuilder and vice-versa Note: String to StringBuffer conversion is also possible, read StringBuffer to String Read More
In this article, we will discuss how to convert String to StringBuffer and vice-versa Note: String to StringBuilder conversion is also possible, read StringBuilder to String conversion Read More
In this article, we will discuss StringBuilder’s substring() method which is used to get sub-string (partial string or portion of string from StringBuilder as per specified range) Read More
In this article, we will discuss StringBuilder’s reverse() method which is used to reverse the contents of invoking StringBuilder object 1. StringBuilder’s reverse() method : This StringBuilder Read More
In this article, we will discuss StringBuilder’s replace() method which is used to replace portion of string or sub-string with specified string 1. StringBuilder’s replace() method : Read More
In this article, we will discuss how to get length of StringBuilder object using StringBuilder’s length() method 1. StringBuilder’s length() method : This StringBuilder method is used Read More