title: bad operand types for binary operator '<='
body: <p>I can't seem to figure out why I'm getting this error. I've tried putting everything in parenthesis and that helped the problem a little bit. It would be great if I could get some help.</p>
  
  <p><strong>Code :</strong></p>
  
  <pre><code>public void merge(String[] result, String[] nameA, String[] nameB)
  {
      int i1 = 0;   // index into nameA array
      int i2 = 0;   // index into nameB array
  
      for (int i = 0; i &lt; result.length; i++) 
      {
          if (i2 &gt;= nameB.length || (i1 &lt; nameA.length &amp;&amp; nameA[i1] &lt;= nameB[i2])) 
          {
              result[i] = nameA[i1];    // take from nameA
              i1++;
          } 
          else 
          {
              result[i] = nameB[i2];   // take from nameB
              i2++;
          }
      }
  }
  </code></pre>
  
  <blockquote>
    <p>error: bad operand types for binary operator '&lt;='</p>
  </blockquote>