Java Format - Java NumberFormat .getMinimumIntegerDigits ()








Syntax

NumberFormat.getMinimumIntegerDigits() has the following syntax.

public int getMinimumIntegerDigits()

Example

In the following code shows how to use NumberFormat.getMinimumIntegerDigits() method.

import java.text.NumberFormat;

public class Main {
  public static void main(String[] args) throws Exception {
    NumberFormat numberFormat = NumberFormat.getIntegerInstance();
    System.out.println(numberFormat.getMinimumIntegerDigits());
  }
}

The code above generates the following result.