title: check same value between two Array android
body: <p>I have two <code>Array</code> as below :</p>
  
  <pre><code>String a[]={"book","pen"};
  String b[]={"pen","pencil","bottle","book","bag"};
  </code></pre>
  
  <p>I want to check, same value between <code>array b</code> and  <code>array a</code>, i have try with this :</p>
  
  <pre><code>for (int i=0; i &lt; b.length; i++){
  
              for (int j=0; j &lt; a.length(); j++){
                  if(!(a.contains(b[i]))){
             //delete if not same
              }
  </code></pre>
  
  <p>so my question,how to check same value between two arraylist android?</p>