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.
Written by Maks Atygaev
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Java
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#