I have a counting from 1 to 20 I want every 3rd and 4th value print as * how to empliment it : i used this but not working and i got stuck either one another got print as star or 3rd another not every 3rd and 4th. 

I am using java for loop with the % and also it not worked