跳出循环操作
1、跳出整个循环操作
for(int i=0;i<count;i++)
{
if(tt[count]==null || tt[count]=="")
break; //跳出整个循环
... //执行其余操作
}
2、跳出某一次循环的操作
for(int i=0;i<count;i++)
{
if (tt[count]==null || tt[count] =="")
continue; //跳出本次循环
... //执行以后的操作
}
for(int i=0;i<count;i++)
{
if(tt[count]==null || tt[count]=="")
break; //跳出整个循环
... //执行其余操作
}
2、跳出某一次循环的操作
for(int i=0;i<count;i++)
{
if (tt[count]==null || tt[count] =="")
continue; //跳出本次循环
... //执行以后的操作
}