How to check if there are duplicate elements in an ArrayList in Java
<p>I have an ArrayList actors. When I print this actors variable, I get an output of like this :</p>

<p>Ram, cricket, Ram, chess</p>

<p>I want to take only only one "Ram" instead of duplication.</p>
