This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
There are methods in the List interface which provide the size of the List; it is easy to use that size - 1 to access the last element.
You can get nasty out-by-one errors if you use <= instead of < (or vice versa) in a for loop.