The continue statement skips the currently executing loop and transfers the control directly to the conditional expression that controls the loop.Any intermediate code is bypassed in all the looping statements.
public class Continue
public static void main(String args)
StringBuffer search = new StringBuffer("saravanan is programmer at Tutorialslot");
int max = search.length();
int numPs = 0;
for (int i = 0; i < max; i++)
if (search.charAt(i) != 'a')
System.out.println("Found " + numPs + " a's in the string.");
Found 7 a's in the string.
saravanan is programmer at Tutorialslot