Home

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 class. I have given two examples with the pictorial explanation to make this concept easy to understand. Introduction let us understand what does mean by ‘substring’. As per the Wiki...

Read more

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 and the intern() method. Read this article to understand this concept completely. I have given two code examples to make this concept easy to understand. Introduction The string is a ...

Read more

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. Introduction The String is a special Class in Java. We use String regularly in Java programs, so comparing two string is a common practice in Java. In this article I tried to answer the most common questions...

Read more

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! Introduction This question is simple but important since it is asked in most of the java interviews. You will be asked to reverse a string using a ready to use library method (like reverse() of StringBuilder) or wit...

Read more

How To Compare Two Strings Lexicographically In Java

In this article, we will learn how to compare two strings lexicographically in java. Introduction First of all, we will understand what does ‘lexicographically’ means? In simple words ‘lexicographically’ means ‘alphabetically ordered’. Yes, correct. The order in which words are given in the dictionary. We are going to compare two strings so ...

Read more

Introduction to Java Technology (Language and Platform)

Java is a general-purpose computer programming language. Let’s get introduced to an amazing programming language. Introduction James Gosling, Mike Sheridan, and Patrick Naughton initiated the Java language project in June 1991. The project was aimed to develop software for a wide variety of network devices and embedded systems. When the proje...

Read more