You can use the continue; keyword. Just be careful with its use as it can cause many infinite loop problems. It also forces the program flow to jump around a little which many people say is bad for readability.
The better bet might just be to only print if(i != 6).
@BlackSheep I am not understanding why you are so against use of 'continue'. Why would it cause an infinite loop? How does it cause program flow to jump around? It seems very obvious to me because you always know it is going to go to the next iteration of the closest enclosing loop. As for infinite loop issues, you have to be doing something wrong.
And the execution flow jumping around is just something I mentioned because there's always a way to accomplish the same thing using conditional statements, which gives a more "natural" feel to the program flow. (In my opinion)
I guess I shouldn't have made it seem like such a concrete fact. Just my two cents.