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]
Java Array Declaration and Initialization
In Java, an array is used to hold fixed number of similar type elements. The length of an array is fixed, which cannot be changed… [Read More]
How to print 2D Array in Java
In Java, there are several ways to print a 2D array. In this guide, we will see various programs to print 2D array using different… [Read More]
How to print Array in Java
In Java, there are several ways to print an array. In this guide, we will see various programs to print array using different approaches: Printing… [Read More]
Sorting 2D Array in Java
In this tutorial, we will learn how to sort a 2D array in Java. As we know, a 2D array consists of rows and columns,… [Read More]
- « Previous Page
- 1
- 2
- 3
- 4
- …
- 65
- Next Page »