title: When I'm iterating over two arrays at once, which one do I use as the limit?
body: <p>I'm always struggling with something like the following Java example:</p>
  
  <pre><code>String breads[] = {"Brown", "White", "Sandwich"};
  int count[] = new int[breads.length];
  for (int i = 0; i &lt; ****; i++)
  {
     // Prompt the number of breads
  }
  </code></pre>
  
  <p><code>****</code>: which array.length should I choose?<br>
  I can choose between <code>breads.length</code> and <code>count.length</code><br>
  I know it would be the same result, but I don't know which one I shoud choose.</p>
  
  <p>There are many other examples where I get the same problem.<br>
  I'm sure that you have encountered this problem as well in the past.</p>
  
  <p>What should you choose? Are there general agreements?</p>
  
  <p>Thanks </p>