DecimalFormat.getMinimumIntegerDigits() has the following syntax.
public int getMinimumIntegerDigits()
In the following code shows how to use DecimalFormat.getMinimumIntegerDigits() method.
import java.text.DecimalFormat; /*from w w w. j a va2 s .c om*/ public class Main { public static void main(String[] argv) throws Exception { DecimalFormat format = new DecimalFormat(); System.out.println(format.getMinimumIntegerDigits()); } }
The code above generates the following result.