• Count the Number of Occurrences of a Character in a String in Java
    05 April

    Count occurrences of Character in String

    In this article, we will look at a problem: Given an Input String and a Character, we have to Count Occurrences Of character in String. [toc] For Example, If the Given String is : "Java2Blog" and we have to count the occurrences of Character ‘a’ in the String. Therefore, Count of 'a' is : 2 […]

  • 27 March

    Top Object-Oriented Programming Languages to Follow in 2021

    Wherever you look, you face object-oriented programming languages. Well, many of the popular coding languages are object-oriented. The moment you decide to learn an object-oriented programming language, it might be quite overwhelming to pick the only one from this big pool of options. But don’t worry! Here you will find out which object-oriented programming languages […]

  • How to end program in java
    08 March

    How to end program in java

    Ho In this post, we will see how to end program in java. You can use System.exit(0) to end program in java. [toc] Using System.exit() to end java program You can use exit() method of System class to end java program. System.exit() causes Java virtual machine to exit and terminate the current process. You can […]

  • Escape double quotes in String 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 […]

  • Convert Date to LocalDate in java
    12 January

    Java Date to LocalDate

    In this post, we will see how to convert Date to LocalDate in java. Sometimes, we may need to convert Date to new Java 8 APIs and vice versa. There are multiple ways to convert Date to LocalDate in java. Read also: Convert LocalDate to Date in java [toc] Using toInstant() method of Date class […]

  • Convert LocalDate to Date in java
    11 January

    Java LocalDate to Date

    In this post, we will see how to convert LocalDate to Date. Java 8 has introduced a lot of new APIs for Date and time. [toc] There can be many ways to convert Java LocalDateTime to date. Using Instant object You can convert LocalDate to Date using Instant object which we can from Zone. Here […]

  • 04 January

    How to change java version in intellij

    Learn about how to change java version in intellij.

  • 03 January

    Generate SerialVersionUID in Intellij

    Learn about how to generate SerialVersionUID in Intellij using different ways.

  • 02 January

    System.out.println shortcut in intellij

    Learn about System.out.println shortcut in intellij.

Subscribe to our newletter

Get quality tutorials to your inbox. Subscribe now.