What does the colon (:) operator do?
There are several places colon is used in Java code: 1) Jump-out label (Tutorial): label: for (int i = 0; i < x; i++) { for (int j = 0; j < i; j++) { if (something(i, j)) break label; // jumps out of the i loop } } // i.e. jumps to here 2) … Read more