Archive of posts with category 'String'

Java Program To Check If Two Strings are Anagram

Here, we will see a Java program to check if two strings are anagrams.

Java Program To Find Duplicate Characters And Their Count In a String.

In this tutorial, we will see how to find duplicate characters and their count in the string using the Java program.

Java Program To Remove All Leading and Trailing Whitespaces From The Given String.

In this tutorial, we will see how to remove all the leading and trailing whitespaces from the given String.

How To Reverse A String In Java Using Recursion

In this article, we will see how to reverse a string in java using the recursion.

How To Convert double To int In Java?

In this article, we will see, how to convert a double value to an integer value in Java programming language.

How To Convert An Integer To String In Java

In this article you are going to learn how can you convert an integer to a String.

How To Convert StringBuilder To String In Java?

In this article you will see, how to convert a StringBuilder to String in Java.

How To Create UUID in Java?

In this article, you will see, how to create UUID in Java.

Your Guide To UUID In Java

In this article, we will see, What is UUID? Java UUID class

How to convert String to int in Java?

In this article you are going to learn how one can convert the string to int using the inbuilt methods of the Integer class.

Difference Between StringBuffer and StringBuilder class

In this article, we are going to discuss the differences between the StringBuffer and StringBuilder class. And we will see why it StringBuilder is preferable to StringBuffer class.”

substring() Method in Java (With example)

The String class in Java is one of the most important classes in Java. After reading this article you will be able to use the ‘substring()` method of the String...

Learn About Java String Pool And intern() Method

The string is an important class in Java. In this article I am explaining one of the most important concepts of String class i.e. the concept of Java String Pool...

How Do I Compare Strings In Java

In this article you are going to learn how to compare strings. What problem occurs when you compare string using equals to (=)operator.

How To Reverse A String In Java (5 ways)

In this article, we will learn how to reverse strings in Java. I have write down 5 diffrent ways to reverse strings. Have a look!

How To Compare Two Strings Lexicographically In Java

In this article, we will learn how to compare two strings lexicographically in java.