I'm writing a programme that will display messages that are stored in an array one at a time. I want it to be able to move through them one at a time upon command from the user. My problem is when it reaches the last value on the array I cannot figure out a way to get it to loop back to the first record.
I appreciate that this problem may seem obvious to some but I have struggled to come up with a solution. I would really appreciate if someone could show me a way to solve this.