Java ArrayList remove duplicates
<p>I have an ArrayList of custom objects. I want to remove duplicate entries. </p>

<p>The objects have three fields: <code>title, subtitle</code>, and <code>id</code>. If a subtitle occurs multiple times, I only need the first item with thats subtitle (ignore the remaining object with that subtitle). </p>
