title: best practice for getting Map value from arguments in a method in java?
body: <p>I want to pass a Map that contains key and value that is Listview,
  which of this 2 method is a good practice in getting the map from arguments</p>
  
  <pre><code>Map&lt;String, List&lt;String&gt;&gt; mMap;
  
  public static void add(Map&lt;String, List&lt;String&gt; map) {
      mMap = map; // direct get and assign to map object
  }
  
  public static void add(Map&lt;String, List&lt;String&gt; map) {
      try {
          //Copies all of the mappings from the specified map to this map 
          mMap.putAll(map); 
      } catch (Exception e) {
      }
  }
  </code></pre>
  
  <p>in the 2 method which is the right way in assigning the value of map argument to our new Map object?</p>