if ArrayList contains doesn't work
<p>i'm curently developing app which has lots of ArraYlists and it needs to compare them with nonlist data. When i try this method <code>fdata.contains(data2)</code> it always returns false. ArayLists contains class named 'favdat' which looks like this:`</p>

<pre><code>public class favdat {
    public String product,term,note,link;
}
</code></pre>

<p>And Data2 is defined like this: <code>favdat Data2=new favdat();</code>
I have also tryed retain all method and it returns list in the size of 0.
I know that some data are equal.</p>

<p>So the question is how could i tell if <code>fdata</code> contains <code>data2</code>?<code>
</code></p>
