I normally use modulus when I want to wrap around a number i.e.
current = (current + 1) % list.size()
In a loop this would go from 0,1,...,list
0,1,...,list