Here you can find the source of addZreoIfLessThanTen(int i)
public static String addZreoIfLessThanTen(int i)
//package com.java2s; public class Main { public static String addZreoIfLessThanTen(int i) { String string = ""; int ballNum = i + 1; if (ballNum < 10) { string = "0" + ballNum; } else {/*from ww w . j a v a 2 s.c o m*/ string = ballNum + ""; } return string; } }