String
- 23 June
Java String contains Ignore Case
We often have to check if a string contains a substring or not in a case-insensitive manner. There are multiple ways to do so. In this article, we will take a look at these methods for java String contains Ignore Case checks. Next, we will look at each method in detail. Using String.toLowerCase() One of […]
- 02 June
Find and count occurrences of substring in string in java
In this post, we will see how to find and count occurrences of substring in string in java. Using the indexOf() method The indexOf() method in java is a specialized function to find the index of the first occurrence of a substring in a string. This method has 4 overloads. [crayon-6729adddb7dd0552479215/] We will use the […]
- 23 May
Print double quotes in java
💡 Outline You can print double quotes in java by escape double quotes using backslash character(\). [crayon-6729adddb8322880046283/] When you print on console using System.out.println, you use double quotes and whatever value inside double quotes is printed. But what if you want to actually print double quotes on console. In this tutorial, we will see different […]
- 04 May
Convert Character to ASCII Numeric Value in Java
Learn about how to convert Character to ASCII Numeric Value in Java.
- 19 January
How to escape double quotes in String in java
In this post, we will see how to escape double quotes in String in java. There are scenarios where you need to escape double quotes already present in the String. This generally happens while dealing with JSON file format or reading file data. Escape double quotes in java Double quotes characters can be escaped with […]
- 24 December
How to capitalize first letter in java
Learn about how to capitalize first letter in java.