java - How to skip a iteration/loop in while-loop -
java - How to skip a iteration/loop in while-loop -
this question has reply here:
goto next iteration in loop in java 6 answersis there elegant way skip iteration in while-loop ?
what want is
while(rs.next()) { if(f.exists() && !f.isdirectory()){ //then skip iteration } else { //proceed } }
while(rs.next()) { if(f.exists() && !f.isdirectory()) continue; //then skip iteration else { //proceed } }
java
Comments
Post a Comment