Programming Reference/Librarys
Question & Answer
Q&A is closed
break;
continiue breaks a loop at a given point and exit the loop
package codereferececomjava; public class CodeRefereceComJava { public static void main(String[] args) { int i; for (i=42;i<=45;i++) { if (i==43) break; System.out.println("The answer is probably "+i); } } }
The answer is probably 42