vimwiki

Java loops

For

for (int i = 0; i < 10; i++) {
    // code
}

While

int num = 0;
while (num < 20) {
    num++;
}

Do-while

int num = 0;
do {
    num++
} while (num < 4);

For each

for (String s : myArray) {
    System.out.println(s);
}

break and continue

TODO