private Map<String , String> c = new HashMap<String , String>();
.... //regx to get mString
c.put(mString.group() , mString.group());
..... //regx to get mNumber
c.put(mNumber.group() , mNumber.group());
.......
Set set = c.entrySet();
Iterator i = set.iterator();
while( i.hasNext() ) {
Map.Entry me = (Map.Entry) i.next();
System.out.println(me.getKey() + " : " + me.getValue());
}
And for some reason when it has Bob as the key and Bob as the value, it decides to allow Bob to be a key again and a value again so I end up with 2 Bob key & values when i only want one. Any help is appreciated
Thanks in advance