title: Java Array, Finding Duplicates
body: <p>I have an array, and am looking for duplicates.</p>
  
  <pre><code>duplicates = false;
  for(j = 0; j &lt; zipcodeList.length; j++){
      for(k = 0; k &lt; zipcodeList.length; k++){
          if (zipcodeList[k] == zipcodeList[j]){
              duplicates = true;
          }
      }
  }
  </code></pre>
  
  <p>However, this code doesnt work when there are no duplicates. Whys that?</p>