In this tutorial, we will discuss toString() method of StringJoiner class. This method is used to get the string representation of StringJoiner object, this includes… [Read More]
StringJoiner add() Method in Java
StringJoiner class is introduced in Java 8. It is a part of the java.util package. The main purpose of a StringJoiner is to create a sequence… [Read More]
Why String Immutable or Final in Java
The immutable and final nature of String class is intentional. This is by design to offer several features and advantages. In this guide, we will… [Read More]
Immutable String in Java
A String in Java is immutable, which means once you create a String object, its value cannot be changed. Any changes (such as concatenation) made… [Read More]
Toggle String in Java
In this guide, we will learn how to toggle string in Java. Toggle means reversing the case of each character of String (i.e., converting uppercase… [Read More]
How to take String Input in Java
In this tutorial, we will learn how to take String input in Java. There are two ways you can take string as an input from… [Read More]
Java Switch with Strings
Introduced in Java 7, you can use switch statement with Strings. This makes code more readable as sometimes the string value of switch case variable… [Read More]
String Concatenation in Java
String concatenation is process of combining multiple strings. In Java, there are multiple ways to do this. In this tutorial, we will see several different… [Read More]
ValueOf() Method in Java
In this guide, we will discuss one of the most commonly used method in Java. The valueOf() method is available in several wrapper classes and other… [Read More]
Java String Max Size
In Java, a string is internally stored as an array of characters. This means the max size of a string is equal to the max… [Read More]
Remove special characters from a String in Java
In this tutorial, we will learn how to remove special characters from a string in java. For example, if the given string is “Hello @… [Read More]
Java null literal
The null keyword in java is a literal. It is neither a data type nor an object. The null (all letters in small case) is… [Read More]
Check if String is Null, Empty or Blank in Java
In this guide, we will learn how to check if a string is null, empty or blank. First let’s see what is the difference between… [Read More]
Java StringBuilder Class With Examples
StringBuilder in Java is used to create mutable strings. A mutable string is the one which can be modified instead of creating new string instance…. [Read More]
Split String into array of Characters in Java
In this guide, we will see how to split a string into array of characters in Java. This can be archived by using this regex… [Read More]
- 1
- 2
- 3
- …
- 5
- Next Page »