I am trying to format a string a certain way. Currently I have
String timeString = hour + ":" + min + ":" + sec ;
however I have hour min and sec as integers and whenever they are a single digit i would like to add a placeholder 0 in front. How would I do that?
Edit: This did not answer my question.