How to add zero as prefix if value less than equals to 9, i am using below way of achieving this:
int countZero = 0; if(countVat <= 9) { countVat = countZero + countVat; Log.d("countVat:", String.valueOf(countVat)); } but this not works for me, still getting single digit if countVat value less than equals to 9.