How to Print every tenth integer in my output

I have created a program that finds all five-digit palindromes (A palindrome is a number which has the same digit from either end such as 12921). Right now I have all of the palindromes printing to the output. Since the output is so large, I want to only print every tenth palindrome but cannot figure out how to do it.

Here's what I have.

Code:

`public class ProgrammingProblemOne {`

public static void main(String[] args){

for(int i = 10000; i <= 100000; i++){

//create variable first digit in order to isolate the first digit

int firstDigit = i / 10000;

//Create variables a and secondDigit in order to isolate the second digit

int a = i / 1000;

int secondDigit = a % 10;

//Create variables b and thirdDigit in order to isolate the third digit

int b = i / 100;

int thirdDigit = b % 10;

//Create variables c and fourthDigit in order to isolate the fourth digit

int c = i / 10;

int fourthDigit = c % 10;

////Create variable fifthDigit in order to isolate the fifth digit

int fifthDigit = i % 10;

//check to see if number is a palindrome

if(firstDigit == fifthDigit && secondDigit == fourthDigit)

System.out.println("the five digit palidrome numbers are: " + i);

}

}

}