title: Alternative ways for hard-coding Map in Java?
body: <p>I'm having a HashMap in my Java program consisting of around 200 -Key-Value-pairs which won't change during runtime and I am looking for a good way to initialize all the pairs. 
  Currently I have a hard-coded method like this</p>
  
  <pre><code>private void initializeHashMap(){
      hashMap.put(1, "String1");
      hashMap.put(2, "String2");
      hashMap.put(3, "String3");
  ...}
  </code></pre>
  
  <p>for all the 200 pairs.
  Is that really good practice or is there another, better way maybe to read the data from another class or an external file?</p>