Java NumberFormat .getMaximumIntegerDigits ()

Syntax

NumberFormat.getMaximumIntegerDigits() has the following syntax.

public int getMaximumIntegerDigits()

Example

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


/*w w w .ja  v a 2s. c o m*/
import java.text.NumberFormat;

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




















Home »
  Java Tutorial »
    java.text »




DateFormat
DecimalFormat
NumberFormat
SimpleDateFormat