Here you can find the source of formatSheetNumber100(final int sheetNumber)
public static String formatSheetNumber100(final int sheetNumber)
//package com.java2s; //License from project: Apache License public class Main { public static String formatSheetNumber100(final int sheetNumber) { if (sheetNumber < 10) { return "00" + sheetNumber; } else if (sheetNumber < 100) { return "0" + sheetNumber; } else {//from w ww.j a va 2s . c om return String.valueOf(sheetNumber); } } }