title: How to get index of an element in value of MultiMap
body: <p>I want to check if the element "Item Two" is in the values of MultiMap get index of that element , below is my code. </p>
  
  <pre><code>import java.util.ArrayList;
   import java.util.List;
   import java.util.Set;
  
   import org.apache.commons.collections.MultiMap;
   import org.apache.commons.collections.map.MultiValueMap;
  
   public class Test {
      public static void main(String args[]) {
          MultiMap mhm = new MultiValueMap();
          String key ="";
          key = "Group One";
          mhm.put(key, "Item One");
          mhm.put(key, "Item Two");
          mhm.put(key, "Item Three");
  
         key = "Group Two";
         mhm.put(key, "Item Four");
         mhm.put(key, "Item Five");
  
         Set keys = mhm.keySet();
         for (Object k : keys) {
             System.out.println("+k+“ : "+mhm.get(k)+")");
             List benefit = new ArrayList();
             benefit.add(mhm.get(k));
             System.out.println("+value at is+“ : "+benefit.contains("Item One")+")");
         } 
     }    
  } 
  </code></pre>
  
  <p>And the Output is:</p>
  
  <pre><code>mhm-keys : [Item One, Item Two, Item Three]
  value at is : false
  mhm-keys : [Item Four, Item Five]
  value at is : false
  </code></pre>
  
  <p>Could you please help as I cannot use something else than MultiMap</p>