Answers for "labeled statement in java ex"

0

labeled statement in java ex

outer: for (int i = 0; i < 10; i++) {
  inner: for (int j = 10; j > 0; j--) {
    if (i != j) {
      System.out.println(i);
      break outer;
    }else{
      System.out.println("-->>" + i);
      continue inner;
    }
  }
}
Posted by: Guest on May-06-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language