Possible Duplicate:
Cannot create an array of LinkedLists in Java…?
I want to call this method:
executeBatch(Map<String,Object>[] batch)
But for the life of me I can't figure out how to create an array of Map<String,Object>[]
I get the error "Can create a generic array of HashMap" when I try HashMap<String,Object>[] params = new HashMap<String,Object>[20000];
I also failed at attempting to cast an ArrayList.toArray()
to a HashMap<String,Object>[]