依据指定长度数字自动左补零

根据指定长度数字自动左补零/** * 根据指定长度自动左补零 * @param sourceStr 源数字 * @param formatLen

根据指定长度数字自动左补零

/** * 根据指定长度自动左补零 * @param sourceStr 源数字 * @param formatLength 指定长度 * @return 指定长度数字,不足补零 */public static String frontZeroFill(Integer sourceStr,int formatLength){     String newString = String.format("%0"+formatLength+"d", sourceStr);     return  newString;   } 

?