Possible Duplicate:
Java generics and array initialization
How does one instantiate an array of maps in Java?
I know I can do :
Map<String, Object> map = new HashMap<String, Object>();
so I should be able to :
Map<String, Object>[] maps = new HashMap<String, Object>[10];
but this does not work, gives compilation problem.