SyntaxFix
Write A Post
Hire A Developer
Questions
It's used in for loops to iterate over a list of objects.
for (Object o: list) { // o is an element of list here }
Think of it as a for <item> in <list> in Python.
for <item> in <list>