title: breaking nested loop java
body: <p>Does the <code>return</code> statement in the following nested loop (in the inner loop) works like break statement? 
  does it break out of the inner loop? 
  thanks</p>
  
  <pre><code>for i   0 to n do
   current   A[i]
   for j   i + 1 to n do
    if A[j] == current then
     return (current, A[j]) 
  return ;
  </code></pre>