List of utility methods to do Int Pad
String | pad(int c) pad if (c >= 10) return String.valueOf(c); else return "0" + String.valueOf(c); |
String | addZreoIfLessThanTen(int i) add Zreo If Less Than Ten String string = ""; int ballNum = i + 1; if (ballNum < 10) { string = "0" + ballNum; } else { string = ballNum + ""; return string; ... |
String | addZeroPrefix(int value) add Zero Prefix if (value <= 9) { return "0" + value; } else { return "" + value; |
String | paddedInt(int value, int charcount) padded Int String str = String.valueOf(value); while (str.length() < charcount) { str = "0" + str; return str; |