I have an array, and am looking for duplicates.
duplicates = false; for(j = 0; j < zipcodeList.length; j++){ for(k = 0; k < zipcodeList.length; k++
Don't use == use .equals.
==
.equals
try this instead (IIRC, ZipCode needs to implement Comparable for this to work.
Comparable
boolean unique; Set s = new TreeSet(); for( ZipCode zc : zipcodelist ) unique||=s.add(zc); duplicates = !unique;