while ((itElements.hasNext()))
{
String sElement = (String) itElements.next();
try
{
String sErrorCode = op2.method_ThrowsEx(sElement);
}
catch(Exception e)
{
e.printStackTrace();
}
}
I Know that iterator has 5 elements,
Frist time I call method_throwsEx(sElemtent) an Exception is thrown , stack is printed and the loop ends.
Why does while ends at the frist element?
Does a loop ends when a exception is thrown?
Thans in advanced