Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

how to go to next iteration of while loop java

/* Use the continue statement to skip (i.e. jump to the end of)
a loop iteration. */
int x = 0;
while (++x < 6){
	if (x == 3){
    	continue; //use this
    }
	System.out.print(x + " ");
}
// result: 1 2 4 5 
Comment

PREVIOUS NEXT
Code Example
Java :: processing angle between two points 
Java :: Could not determine java version from 
Java :: throw error java 
Java :: add two numbers bitwise 
Java :: palindrome find in java 
Java :: java standard exceptions 
Java :: java object to int 
Java :: how to save a string to a text file 
Java :: how to change tablayout current view position in android 
Java :: java throw an exception 
Java :: java end scripting 
Java :: install java using cmd 
Java :: android dialog box example 
Java :: set spring context 
Java :: add Duration to date in Kotlin 
Java :: json array get json object 
Java :: how to create a constructor in java 
Java :: get key from value hashmap 
Java :: java to the power of 
Java :: import java.lang.Math.*; 
Java :: the main of java 
Java :: GenerationTarget encountered exception accepting command : Error executing DDL 
Java :: spring-boot java header appliacation/json constant 
Java :: string.indexof java 
Java :: how to use ListIterator in java 
Java :: startswith java 
Java :: print symbol in pyramid shape in java 
Java :: android search in webview 
Java :: hashmap 
Java :: launch java batch 
ADD CONTENT
Topic
Content
Source link
Name
3+3 =