For example, if I were to do...
for (String s : arraylist) {
// Do something with string
}
If it isn't possible, is there another method of traversing through some sort of collection class while controlling the iteration counter? I tried looking through the answers to this question but couldn't think of a way that was clear to me.
Any suggestions are appreciated!