Java2Blog
  • Home
  • Core Java
  • Tutorials
    • Spring
    • Spring Boot
    • Spring MVC
    • Java 8
    • Hibernate
  • Categories
    • Interview Questions
    • Spring Frameworks
    • Core java
    • Python
    • C++
  • NM
close
import_contacts

Java Tutorials

  • Core Java
  • Java Interview questions
  • Java 8 Stream
  • Java interview programs
import_contacts

Data structure and algorithm

  • Data structure in java
  • Data structure interview questions
import_contacts

Spring tutorials

  • Spring tutorial
  • Spring boot tutorial
  • Spring MVC tutorial
  • Spring interview questions

Core java

  • public static void main(String args[]) - Java main method
    Java Basics
    11 June

    public static void main(String[] args) – Java main method

    If you have worked with Java programs before, you know that all Java programs start by running the main() method(public static void main(String[] args)). The main() method is the entry point. The signature of the main method is fixed, and each portion of the statement has significance. Why is the main method so important? The […]

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

    Read More
  • Print double quotes in java
    String
    23 May

    Print double quotes in java

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

    Read More
  • Question mark in java
    Operator
    20 May

    Question mark operator in java

    Learn about Question mark operator in java. It is also know as ternary operator.

    Read More
  • Java BigDecimal to Double
    BigDecimal Conversion
    17 May

    Java BigDecimal to Double

    Learn about how to convert BigDecimal to Double in java

    Read More
  • Java Split String by Space
    String
    13 May

    Java split string by space

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

    Read More
  • Java Set to Array
    Conversion Java Collections
    12 May

    Java Set to Array

    In this post, we will learn java set to array conversion. There are many ways to convert set to an array. 1. Using Java 8’s Stream If you are using Java 8, I would recommend using Java 8 Stream. [crayon-6a29d5f9009bc020641305/] Output [John, Martin, Mary] 2. Using toArray() We can directly call toArray() method on set […]

    Read More
  • Print ArrayList in java
    Java Collections
    11 May

    Print ArrayList in Java

    Learn about how to print ArrayList in java in different ways.

    Read More
  • Split String by new line in java
    String
    09 May

    How to split String by newline in java

    Learn about how to split String by newline in java

    Read More
  • keyboard_arrow_left Previous
  • 1
  • …
  • 647
  • 648
  • 649
  • 650
  • 651
  • …
  • 715
  • Nextkeyboard_arrow_right

Newsletter


Let’s be Friends

© 2020-22 Java2Blog Privacy Policy