title: Creating prepopulated set in Java
body: <p>In Java, how do I create a final Set that's populated at construction? I want to do something like the following:</p>
  
  <pre><code>static final Set&lt;Integer&gt; NECESSARY_PERMISSIONS 
      = new HashSet&lt;Integer&gt;([1,2,3,6]);
  </code></pre>
  
  <p>but I don't know the proper syntax in Java.</p>