When I reverse iterate over an ArrayList I am getting a IndexOutOfBoundsException. I tried doing forward iteration and there is no problem. I expect and know that there are five
Java arrays are zero-indexed. You will have to set j = list.size() - 1 and continue until j = 0.