title: Compare two List<String> values in android
body: <p>Dear all i am comparing two List in android if both values are same and it is returning true that is fine but i want to know how many values have been correct between the list string if it is not matching how to achieve this Help is appreciated. Below is my code.</p>
  
  <pre><code>            List&lt;String&gt; list1 = new ArrayList&lt;String&gt;(i1.values());
              ///list 1 = [-ful; to be full of; play; playful; full of play]
      List&lt;String&gt; acct_Rte_Cdes_A = Arrays.asList(result) ;
              ///acct_Rte_Cdes_A  = [-ful; to be full of; play; playful; full of play]
               if (list1.equals(acct_Rte_Cdes_A)) { 
                  // do what you want to do if the string is there
                  //System.out.println("True");
       }  else {
          System.out.println("False");
           }
  </code></pre>