cara mengulangi kode 3 kali java

for (int i = 0; i < 3; i++) {
    // your code goes here
}
Weary Wildebeest