Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 5
I am trying to go through the array and print all the two digits which add up to 10. In the answer above show 5, but 5 should be part of the answer, what might the problem be?
|All times are GMT +5.5. The time now is 13:36.|