Creating a scale; problem with for- / if-statement
I would like to draw a scale, ranging from 0 to 700; this works pretty well:
privatestaticfinalint SIZE = 20;
privateint tickHeight = 8;
(...)
for (int i = 0; i < 700; i += 10){
g2.drawLine(i, SIZE, i, SIZE - tickHeight);
}
Now I would like to draw every 100. tick higher, say 12px. Unfortunately I don't find the correct solution :( I have to write an if statement saying something likeif (i = (100, 200, ...)) tickHeight = 12;
How can I do this in Java?
Thanks for your help!

