title: How to compare arraylist value and array value in java
body: <pre><code>int sizeOfTheShortestList = webresult.size();
      for (int i=0; i&lt;sizeOfTheShortestList; i++) {
          if (webresult1.get(i).equals(dbresult[i]) )
          {
            System.out.println("Equals..: " + webresult1.get(i));
       }
   }
  </code></pre>
  
  <p>from above code i find errors please give solution to compare arraylist values and array values</p>