import java.sql.*; public class ArrayTest { public static void main(String args[]) throws Exception { Class.forName("org.postgresql.Driver"); Connection conn = DriverManager.getConnection("jdbc:postgresql://localhost:5820/jurka","jurka",""); Statement stmt = conn.createStatement(); ResultSet rs = stmt.executeQuery("SELECT '{i,o,o}'::\"char\"[]"); rs.next(); Array arr = rs.getArray(1); String s[] = (String[])arr.getArray(); for (int i=0; i