title: Removing duplicate elements from a List
body: <p>I have developed an array list.</p>
  
  <pre><code>ArrayList&lt;String&gt; list = new ArrayList&lt;String&gt;();
  
  list.add("1");
  list.add("2");
  list.add("3");
  list.add("3");
  list.add("5");
  list.add("6");
  list.add("7");
  list.add("7");
  list.add("1");
  list.add("10");
  list.add("2");
  list.add("12");
  </code></pre>
  
  <p>But as seen above it contains many duplicate elements. I want to remove all duplicates from that list. For this I think first I need to convert the list into a set.</p>
  
  <p>Does Java provide the functionality of converting a list into a set? Are there other facilities to remove duplicates from a list?</p>