title: "Cannot create generic array of .." - how to create an Array of Map<String, Object>?
body: <p>I would like to use simpleJdbcInsert class and executeBatch method</p>
  
  <pre><code>public int[] executeBatch(Map&lt;String,Object&gt;[] batch)
  </code></pre>
  
  <p><a href="http://static.springsource.org/spring/docs/2.5.x/api/org/springframework/jdbc/core/simple/SimpleJdbcInsert.html" rel="noreferrer">http://static.springsource.org/spring/docs/2.5.x/api/org/springframework/jdbc/core/simple/SimpleJdbcInsert.html</a></p>
  
  <p>So I need to pass an array of <code>Map&lt;String,Object&gt;</code> as parameter. How to create such an array?
  What I tried is</p>
  
  <pre><code>Map&lt;String, Object&gt;[] myArray = new HashMap&lt;String, Object&gt;[10]
  </code></pre>
  
  <p>It is error: Cannot create generic array of <code>Map&lt;String, Object&gt;</code></p>
  
  <p>A <code>List&lt;Map&lt;String, Object&gt;&gt;</code> would be easier, but I guess I need an array. So how to create an array of <code>Map&lt;String, Object&gt;</code> ?
  Thanks </p>