[Solved] ArrayIndexOutOfBounds error lottery program/ Uncompilable source code error
[ad_1] Your for loop count is exceeding over the array’s length. Both the for loops should be run like for (int count = 0; count < lottoNumbers.length; count++) Also, you shouldn’t hardcode your length values (5, 4) used in your count comparisons for printing commas. Use the length property as for (int count = 0; … Read more