filmov
tv
Programming Java with zer - Playthelottery 14 - More Debugging with Eclipse

Показать описание
In this episode, I explore the possibility of further consolidating my RNG and USER duplicateCheck() and RNG and USER drawMultipleNumbers() into one duplicateCheck() and drawMultipleNumbers() methods, while avoiding a 'spaghetti code' catastrophe. I learn why I cant process the RNG and USER arrays as one into one method - but that doesn't mean there isn't a way. It might take a smarter programmer than me to figure it out. Maybe I'll take a closer look some day but as far as I can tell, it can't be done. Finally, I calculate the win percentage value correctly and incidentally re-learn what it means to typecast from one data type to another.