में पुनरावृत्ति/लूप को कैसे छोड़ें, क्या लूप में पुनरावृत्ति को छोड़ने का कोई शानदार तरीका है?जबकि-लूप
while(rs.next())
{
if(f.exists() && !f.isDirectory()){
//then skip the iteration
}
else
{
//proceed
}
}
क्यों 'f.isDirectory() 'के साथ' if' नहीं है? –