Patricia Samuel wrote:Hi Alex,
Please let me know what input this line takes for the test case you have provided -
# System.out.println("\nPlease enter your vote");
# System.out.println("Please enter votes: 1,2,3,4,5 etc");
# Scanner kb = new Scanner(System.in);
Thanks
Patricia
That input is in the while loop
The input would be something like 1,2 or 2,1 aka, which person is your number 1 preference, and which is your number 2. From there, that
string is getting split up into individual characters and entered into various slots in the array. It's not doing that.