You must have not changed something correctly. Try this version:
This version uses the code mentioned and works without any errors.
The colon is the preferred method in the real world. If this were PHP, it would be:
foreach($students as $studentTeacher)
In C#, it would be:
foreach(String studentTeacher in students)
And in Java, its:
for(String studentTeacher : students)
But the copy I just sent you will work without using this type of for loop.
Let me know if you need anything else. And please remember to rate my answer.
If you have further Java, C#, PHP, ActionScript, HTML/CSS, ColdFusion, Ruby, Ruby on Rails -- programming in general questions, please feel free to ask for me in the future!