How to define a static dictionary and access it in Java?
<p>How to define a static dictionary and access it in Java.
I do it like this in iOS Swift:</p>

<pre><code>let pairs = [
     "Name1": "Value1", 
     "Name2": "Value2"
]

print(pairs["Name1"]) // Value1
</code></pre>

<p>How to do something like this in Java?</p>