andreortigao on October 12nd, 2020 at 04:31 UTC »
That's terrible code, you have to place each case in a separated class
Pa3kc123 on October 12nd, 2020 at 06:08 UTC »
Oh... My... Gawd...
They forgot 0...
recycledbits on October 12nd, 2020 at 07:19 UTC »
Yeah, that's definitely terrible. You should have all the numbers in named constants.
is much better and more extensible if the value of twenty were to change in future versions...
andreortigao on October 12nd, 2020 at 04:31 UTC »
That's terrible code, you have to place each case in a separated class
Pa3kc123 on October 12nd, 2020 at 06:08 UTC »
Oh... My... Gawd...
They forgot 0...
recycledbits on October 12nd, 2020 at 07:19 UTC »
Yeah, that's definitely terrible. You should have all the numbers in named constants.
else if (number == TWENTY) return true;is much better and more extensible if the value of twenty were to change in future versions...