• JSP
  • JavaScript
  • jQuery
  • Java IO
  • Spring
  • RubyonRails
  • Servlet
  • Core Java
  • Struts

  • <

    Java Continue Tutorial

    Continue statement is executed at the end of the loop.Continue statement is used with for loop or while loop.


    Java Continue Example


    
    class Test {
       public static void main(String[] args) {
          
          for (int i = 1; i <= 10; ++i) {      
             if (i > 4 && i < 9) {
                continue;
             }      
             System.out.println(i);
          }   
       }
    }
    

    OUTPUT:
    1
    2
    3
    4
    9
    10
    
















    © copyright 2017-2021 Completedone pvt ltd.