Last Updated: February 25, 2016
·
456
· jxcoder

Java Tip #4. Stop to use "continue" operator!

Stop to use "continue" operator in loops!

I strongly recommend to use "if" condition to determinate when you need to do something and when you don't.

The "continue" operator just spends your time!

Usually, "continue" located inside "if { ... }" block, it means that you need to understand condition, keep it in mind, analyze it and in total understand that you just lose your time.

Tip: Don't use "continue". Specify conditions when you need to do something.