title: writing an initialized static hashtable elegantly
body: <p>Is there a way to write a static final Hashtable in java in key value pairs just like you can initialize a string array conveniently as :   </p>
  
  <pre><code>String [] foo = {"A","AB"};
  </code></pre>
  
  <p>Basically what I mean is not having to write the words "put" for key:value pairs but instead may be something like:  </p>
  
  <pre><code>Hashtable&lt;String, String&gt; foo = {"JJ":"222","KK":"222"}
  </code></pre>
  
  <p>which IMO looks more elegant.</p>
  
  <p>(I know the initialization would need to be in a static block. I am leaving that out for now)</p>