Here you can find the source of getMessages(Array arr)
@SuppressWarnings({ "unchecked", "rawtypes" }) public static List getMessages(Array arr) throws SQLException
//package com.java2s; import java.sql.Array; import java.sql.SQLException; import java.util.ArrayList; import java.util.List; public class Main { @SuppressWarnings({ "unchecked", "rawtypes" }) public static List getMessages(Array arr) throws SQLException { List arrRes = new ArrayList(); if (arr != null) { String[] msgs = (String[]) arr.getArray(); for (int i = 0; i < msgs.length; i++) arrRes.add(msgs[i]);/* w w w . j a v a 2 s .co m*/ } return arrRes; } }