title: How to convert an Array to a Set in Java
body: <p>I would like to convert an array to a Set in Java. There are some obvious ways of doing this (i.e. with a loop) but I would like something a bit neater, something like:</p>
  
  <pre><code>java.util.Arrays.asList(Object[] a);
  </code></pre>
  
  <p>Any ideas?</p>