• 11 June

    Remove Parentheses From String in Java

    Java uses the Strings data structure to store the text data. This article discusses methods to remove parentheses from a String in Java. Java Strings Java Strings is a class that stores the text data at contiguous memory locations. The String class implements the CharSequence interface along with other interfaces. Strings are a constant data […]

  • Escape percent sign in java
    08 February

    Escape percent sign in String’s format method in java

    In this post, we will see how to escape Percent sign in String’s format() method in java. Escape Percent Sign in String’s Format Method in Java String’s format() method uses percent sign(%) as prefix of format specifier. For example: To use number in String’s format() method, we use %d, but what if you actually want […]

  • Get unicode value of character in java
    07 February

    Get Unicode Value of Character in Java

    In this post, we will see how to get unicode value of character in java. Get Unicode Value of Character in Java You can simply use below code to get unicode value of character in java. [crayon-62b9838c22c8a554386789/] Here is complete example to print unicode value of character in java: [crayon-62b9838c22c8e001193575/] Output Unicode value of character […]

  • Find character in String in java
    02 February

    Find Character in String in Java

    In this post, we will see how to find character in String in java. How to Find Character in String in Java There are multiple ways to find char in String in java 1. Using indexOf() Method to Find Character in String in Java indexOf() method is used to find index of substring present in […]

  • 13 July

    Remove substring from String in Java

    In this post, we will see how to remove substring from String in java. There are multiple ways to remove substring from String in java. Using String’s replace method to remove substring from String in Java This method belongs to the Java String class and is overloaded to provide two different implementations of the same […]

  • Java String contains IgnoreCase
    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 […]

  • Find and count occurences of substring in String in Java
    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-62b9838c244af581803827/] We will use the […]

  • Print double quotes in java
    23 May

    Print double quotes in java

    💡 Outline You can print double quotes in java by escape double quotes using backslash character(\). [crayon-62b9838c2470d807917713/] 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 […]

  • Java Split String by Space
    13 May

    Java split string by space

    Learn about how to split String in java in different ways.