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

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

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