title: C# to Java - Dictionaries?
body: <p>Is it possible in Java to make a Dictionary with the items already declared inside it? Just like the below C# code:</p>
  
  <pre><code>   Dictionary&lt;string, int&gt; d = new Dictionary&lt;string, int&gt;()
      {
          {"cat", 2},
          {"dog", 1},
          {"llama", 0},
          {"iguana", -1}
      };
  </code></pre>
  
  <p>How do I do this and what type do I use? I've read that Dictionary is obsolete.</p>