title: Mapping PostgreSQL text[][] type and Java type
body: <p>I have a Postgres table containing a column of type <code>text[][]</code>. In JDBC code I've used a String array, but an exception told me that these two do not match. If there's no mapping between these types, could you suggest a Postgres type for a string arrays?</p>
  
  <p>This is the code:</p>
  
  <pre><code>String list = "'{";
          for(int i=0; i&lt;array.length; i++) {
              list+=prodotti[i]+",";
          }
          list+="}'";
  
          preparedStm.setString(4, list);
  </code></pre>