How would I format an int between 0 and 99 to a string which is 2 chars. E.g
0
99
4 becomes \"04\" 36 becomes \"36\"
Than
Simple way is to append "" to the integer (or any primitive type)
String str = "" + anyInetger;
You can use
String str; if (anyInteger < 10) { str = " 0" + anyInetger; } else { str = "" + anyInetger; }