How to convert a String to uppercase
In this blog post, I will be explaining how you can convert a String to uppercase. Consider the following code […]
This post has sample programs related to Java Strings
In this blog post, I will be explaining how you can convert a String to uppercase. Consider the following code […]
A very common interview question is to ask the difference between String, StringBuffer and StringBuilder. So in this blog post, […]
You might have heard a lot about Java Strings being immutable. You might have also faced interview questions where you […]
In this blog post, I will be demonstrating how you can convert a String to a Date object. Consider the […]
In order to find the number of words in a sentence, you can use the String.split method. The following code […]
You can use Java regular expressions to check if a String has only alphabets as follows: The above code […]
There is a replace method provided by the String class that can be used to replace a character in a […]