in java the % is called a modulus
so lets say you have 13%10 that would equal 3
or 11%10 would equal 1, it gives the remainder after the division.
this will occur every time timer is divisible by 10, so 1,2,3,4,5,6,7,8,9 would NOT trigger it
//loop
if(timer % 10 == 0){
//ticks every 10th interval
}
timer++;
This is 1 of many way some people do some sort of interval timer.
You could also just set up a simple little loop to break each number into something separate
How exactly do you want to implement your timer? is it forever counting up like elapsed time? or firing/action interval? or whatever, as there may be a better solution for your given scenario.
/ what he said works too /