title: Java - compare an arrays of values
body: <pre><code>String isoArray[] = {"020","784","004","028"};
  
  if(!("020".equals(element[2]) || "784".equals(element[2]) || "004".equals(element[2]) || "028".equals(element[2]))){
              country a = new country(element[4], element[5], element[7]);
              countries.add(a);
  }
  </code></pre>
  
  <p>Is there an easier way of comparing these strings without using loops? </p>