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

Number

  • Core java Number
    20 September

    Convert 0 to 1 and 1 to 0 in Java

    In this post, we wil see how to convert 0 to 1 and 1 to 0 in java. There are lots of ways to convert 0 to 1 and 1 to 0 in Java. Let’s go through them. Using Subtraction This is one of easiest solution to swap 0 to 1 and vice versa. Just […]

    Read More
  • Core java Number
    19 September

    Count Number of Decimal Places in Java

    In this post, we will see how to count number of decimal places in java. A Double can not have exact representation, you need to convert it to String to count number of decimal places in Java. There are multiple ways to count number of decimal places in java. Let’s go through them. Using String’s […]

    Read More
  • Core java Number
    16 September

    How to Take Integer Input in Java

    This article discusses the methods to take the integer input in Java. Variables In programs, data values are reserved in memory locations that can be identified by names (identifiers). Such named memory location which temporarily reserves data that can be changed while the program is running is called a variable. Let’s see how variables are […]

    Read More
  • Format number with Commas in Java
    Core java Number
    20 February

    Format Number with Commas in Java

    In this post, we will see how to format number with commas in java. How To Add Commas to Number in Java There are multiple ways to format number with commas in java. Let’s go through them. 1. Using DecimalFormat DecimalFormat can be used by providing formatting Pattern to format number with commas in java. […]

    Read More
  • Left pad Integer with zeroes in java
    Number
    05 May

    How to left pad Integer with zeroes in java

    Learn about how to left pad Integer with zeroes in java

    Read More
  • Print float to 2 decimal places in java
    Number
    02 May

    7 ways to print float to 2 decimal places in java

    Learn about how to print float to 2 decimal places in java in 7 different ways.

    Read More
  • Format double to 2 decimal places in java
    Number
    22 January

    Format Double to 2 Decimal Places in Java

    Learn about how to format double to 2 decimal places in java

    Read More
  • java programs Number
    25 December

    Find automorphic number in java

    Learn about how to find automorphic number in java using different methods

    Read More
  • java programs Number
    25 December

    Find nth prime number in java

    Learn about how to find nth prime number in java.

    Read More
  • 1
  • 2
  • 3
  • 4
  • Nextkeyboard_arrow_right

Newsletter


Let’s be Friends

  • Facebook
  • Twitter
  • LinkedIn

© 2020-22 Java2Blog Privacy Policy