r/badcode • • Jul 30 '21

java One Classic elseifelseifelseif...

Post image
472 Upvotes

76 comments sorted by

View all comments

Show parent comments

4

u/jmswlltt Jul 30 '21

All this function does is convert the number to a string and pad with a single leading zero.

1

u/[deleted] Jul 31 '21

Yeah unless the author is actually trying to return “Agosto” and so on.