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;
//from   w  w w . j ava2s .  c  o  m
public class Main {
  public static void main(String[] args) throws Exception {
    NumberFormat numberFormat = NumberFormat.getIntegerInstance();
    System.out.println(numberFormat.getMinimumIntegerDigits());
  }
}




















Home »
  Java Tutorial »
    java.text »




DateFormat
DecimalFormat
NumberFormat
SimpleDateFormat