How can I put a hashmap inside an array?

```
HashMap<String, Object>[] config= null;
        config[0] = new HashMap<String, Object>(); 
        config[0].put("Name", "Jon");
        config[0].put("valueA", 0);
        config[1] = new HashMap<String, Object>(); 
        config[1].put("valueA", 2323);

```