while (!rs.next()) {
while (rs.next()) {
    public String[] doGetIds(Connection connection) throws SQLException, IOException {        PreparedStatement s = null;        ResultSet rs = null;        try {            List ids = new ArrayList();            s = connection.prepareStatement(statements.getFindAllIdsStatement());            rs = s.executeQuery();            while (!rs.next()) {                ids.add(rs.getString(1));            }            return (String[]) ids.toArray(new String[ids.size()]);        }        finally {            close(rs);            close(s);        }    }