Good programming habits with return statements
<p>I'm a beginning programmer studying computer science and I've been told many times that using a return statement in a loop is not a good programming habit and should be avoided. Nowadays, I read a lot of code in the Java library to learn how everything works and I'm surprised to see that return statements in loop are everywhere.</p>

<p>Does anyone could explain me why using return statements in loops should be avoided?</p>

<p>Thanks!</p>
