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 answers

is 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

Popular posts from this blog

javascript - mongodb won't find my schema method in nested container -

How do you set up a perforce server to work over the internet? -

ios - Lagging ScrollView with UIWebview inside -