for example it doesn't come much easier than this to find every third iteration


for(int i = 1; i < 10; i++) {
if(i%3 == 0) {
System.out.println(i);
}
}