title: Get unique values from ArrayList in Java
body: <p>I have an <code>ArrayList</code> with a number of records and one column contains gas names as CO2 CH4 SO2, etc. Now I want to retrieve different gas names(unique) only without repeatation from the <code>ArrayList</code>. How can it be done?</p>