Java tutorial
//package com.java2s; public class Main { private static void padInt(StringBuilder paramStringBuilder, int paramInt1, int paramInt2) { String str = Integer.toString(paramInt1); for (int i = paramInt2 - str.length(); i > 0; i--) paramStringBuilder.append('0'); paramStringBuilder.append(str); } }