User Tools

Site Tools


java:control_structures:continue
click
to support this page (eg 0,42 € or so) Thanks.

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

java:control_structures:continue [2013/04/12 10:19] (current)
94.222.111.40 created
Line 1: Line 1:
 +====== continiue ======
 +<code java>
 +continiue;
 +</code>
  
 +continiue breaks a loop at a given point and continiue the loop
 +
 +
 +===== example of continiue in java =====
 +<code java>
 +package codereferececomjava;
 +
 +public class CodeRefereceComJava {
 +
 + 
 +    public static void main(String[] args) {
 +
 +        int i;
 +        for (i=40;i<=45;i++) {
 +            if (i==42) continue;
 +            System.out.println("The answer is probably not "+i);
 +        }
 + 
 +    }
 +}
 +
 +</code>
 +
 +=== output of continiue ===
 +    The answer is probably not 40
 +    The answer is probably not 41
 +    The answer is probably not 43
 +    The answer is probably not 44
 +    The answer is probably not 45
advertising
java/control_structures/continue.txt · Last modified: 2013/04/12 10:19 by 94.222.111.40

Impressum