Question: I'm using Watir-Webdriver to do automation testing. But it seem not stable for cross browser.
For example, it usually work fine in Firefox and Chrome but are not stable in IE.
When I get an element and do a click, in ie7,8,9 it response in a different ways.
The button can be clicked but nothings happen.
I've tried many ways like: click, click(), send\_key, fire\_event but I still haven't got the final solution for cross browser clicking.
For example, in ie9, when using click, sometime it works perfect, sometimes not, I don't know the reason.

Do we have a solution such as a function allow we to click successful in an element in multiple browsers (especially in IE7,8,9)?

Answer: 
This is what you're after I believe.
Since a HashMap can only store unique keys you're forced to go with a list if you want multiple values for one (1) key.

There are perhaps better ways of achieving this but it's working and is pretty expressive in itself and pretty clear what it does and how.

The HashMap now accepts the List interface and can thusly accept any list-type that implements it. Which is pretty neat! :)

```
ArrayList<int[]> values = new ArrayList<int[]>();

values.add(new int[]{1,2});
values.add(new int[]{1,3});

HashMap<String, List<int[]>> H = new HashMap<String, List<int[]>>(); 

H.put("drdetroit", values);

for(String key : H.keySet()) {
    for(int[] array : H.get(key)){
        System.out.println(Arrays.toString(array));
    }
}

```
```
System.out.println(Arrays.toString(H.get("drdetroit")));

```

I - stands for `int` array and c3c749 is **hashcode**