HashMap roleRightsID = new HashMap();
is there any data structure similar to HashMap where I can add duplicated keys
USA, New York
USA, Los Angeles
What you need is called a multimap, but it is does not exist in standard Java. It can be simulated with a
Map<String, List<String>> in your case.
You can find an example here: http://docs.oracle.com/javase/tutorial/collections/interfaces/map.html, in the Multimaps section.