title: Does Arraylist .contains method work on Arraylist with multiple parameters
body: <p>Lets say I have a custom Arraylist &quot;al&quot; with parameters &quot;name&quot; , &quot;sex&quot; , number, and I added the following items into the Arraylist:</p>
  <pre><code>al.add(new AL(&quot;xvc&quot;,&quot;yes pls&quot;,112233));
  al.add(new AL(&quot;tww&quot;,&quot;no thanks&quot;,44532));
  al.add(new AL(&quot;wrr&quot;,&quot;yes pls&quot;,88643));
  </code></pre>
  <p>Does the <code>.contains</code> method work on such an lists? So far, all the examples of the <code>.contains</code> method only work with a simple String or int list. My own tests with various ways of using the method have returned false thus far.</p>
  <p>My ultimate goal is to search whether an element in the array has the value of &quot;wrr&quot;. I figured I could do it by building alongside a hashmap, but I wonder if there's any method within ArrayList that can do the same simple search.</p>