SyntaxFix
Write A Post
Hire A Developer
Questions
In Java, you can't, as foreach was meant to hide the iterator. You must do the normal For loop in order to get the current iteration.