The Command.. break; in java what if.?
<p>What if we have a for loop and inside it an if statement it would stop the whole loop or only the if condition... Example:</p>

<pre><code>for(int i = 0; i&lt;array.length; i++)
{
   if(condition)
   {
     statement;
     break;
   }
}
</code></pre>
