java repeat loop cycle for

Solutions on MaxInterview for java repeat loop cycle for by the best coders in the world

showing results for - "java repeat loop cycle for"
Paola
21 Jan 2019
1for(int  i = 0; i < 10; i++) {
2  	//your code
3	if(random.nextInt(5) == 0) { i--; } //1 in 5 chance to repeat loop cycle
4}