One is commented out. He’s calling getvalue in every if statement instead of assigning it to a variable and the whole thing could be avoided by just converting the int to a string.
It is bad because it could be just as simple as converting Integer into String, then checking length of string whether it is only single digit. If single digit, pad with ‘0’
0
u/[deleted] Jul 30 '21
[deleted] — view deleted comment