Control flow / Interruption of a control flow

int[] numbers = { 235711131719 };
var str = "";
for (int i = 0; i < numbers.length; i++) {
    if (i % 2 == 1)
        continue;
    str += (str == "" ? "" : "-") + numbers[i];
}
//str is "2-5-11-17"

System.out.println(str);