Java continue

Last Updated: March 17, 2022
 int[] numbers = {125, 132, 95, 116, 110};
 for (int i = 0; i < numbers.length; i++) {
     if (numbers[i] == 95) continue;
     System.out.println("Number is " + numbers[i]);
 }

Output

Number is 125
Number is 132
Number is 116
Number is 110

Test