Here you can find the source of formatInteger(int i, int j)
Parameter | Description |
---|---|
i | the i |
j | the j |
public static String formatInteger(int i, int j)
//package com.java2s; //License from project: Apache License public class Main { /**// w w w.ja va2s .c o m * Format integer. * * @param i the i * @param j the j * @return the string */ public static String formatInteger(int i, int j) { String frm = "%0" + j + "d"; String s; s = String.format(frm, i); return s; } }