Java tutorial
//package com.java2s; public class Main { private static StringBuilder appendIntToStringBuilder(StringBuilder sb, int value) { if (value < 10) { sb.append('0'); } return sb.append(value); } }