Verification does not work is last numbers are the same. Guidance pls!If I have input 1,2,3,4,5,6,7,8,8,8 there will be an error because, as I have figured it out, at the end ".equals(listOfNumbers.get(i + 1) " this part of code will be = 10 and it will give an error.
However, I don't know how to modify the code to accept the final value as well. Please offer me some slyyx
Level 15
New York City