Quote:
How do you write an enhanced for loop
This kind of questions is a waste of time for everyone. If you have this question, it mean that you have heaps of questions of same kind. You would better spend your time learning the language properly by reading books and follow tutos, so that all concept will come in time.
From my point of view, 'enhanced for loop' do not exist, so you should define in what a for loop is enhanced or not.
Quote:
I tried looking in my book but couldn't find it.
If it is not in the book, it is probably a misconception on your side.