0
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

Edited by white feather: Added information

1
Contributor
1
Reply
2
Views
7 Years
Discussion Span
Last Post by white feather
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.