I am working in programming for last couples on years, but today I saw a new thing that I searched on net but can't find the perfect answer. There is a code which says
for(String string : mCha) // line 1
{
// loop working
}
I want to ask that what does the line 1 mean? As I have studied that there should be 3 parameters in for loop and if we don't want to give that than the following method should follow
for(;;)
{
}
Please explain me as I am totally new to this syntax and I searched on net but can't find any thing useful.