title: MultiValueMap in java
body: <p>I'm studying with Hashmap with Multiple parameters(1 key, 2 values)
  and i was able to find apache multiValueMap for my issue.</p>
  
  <p>Here is my codes for multiValueMap.</p>
  
  <pre><code>import java.util.Set;
  import org.apache.commons.collections.map.MultiValueMap;
  import org.apache.commons.collections.MultiMap;
  
  public class multiValueMap {
  
  public static void main(String args[]) {
     String a, b, c;
     MultiMap mMap = new MultiValueMap();
  
     mMap.put("a", "Hello there, It's a wonderful day");
     mMap.put("a", "nice to meet you");
  
     Set&lt;String&gt; keys = mMap.keySet();
  
     for (String key : keys) {
        System.out.println("Key = " + key);
        System.out.println("Values = " + mMap.get(key));
        a = String.valueOf(mMap.get(key));
  
        System.out.println("A : " + a);
      }
   }
  }
  // The result as below
   Key = a 
   Value = [Hello there, It's a wonderful day, nice to meet you]
   A : [Hello there, It's a wonderful day, nice to meet you]
  </code></pre>
  
  <p>Here is my question 
  <strong>how can I store first value for string b, and second for c?</strong>
  if I substring the MultiMap values depends on "," then it would stores Hello there only.
  please give me helpful your advices.</p>