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
You can do this using NumberFormat. E.g.,
NumberFormat formatter = new DecimalFormat("00"); String s = formatter.format(4);