I am trying to populate a multidimensional array from a resultset. Here is what I've attempted thus far:
conn = transaction.SQLConn();
Statement stmt = conn.createStatement();
ResultSet rs = stmt.executeQuery(sqlstmt);
Values[] fvalues = new Values[response.getRows().length];
String fname = fvalues[0].getFieldValue().getName();
String fvalue = fvalues[1].getFieldValue().getValue();
for (int i = 0; i < fvalues.length; i++){
for(int j=0;j<fvalues[i].length;j++){
fvalues[i][fname] = new Integer((i+1)*(j+1));
}
}
Any help would be appreciated. Arrays are seriously confusing me to no end.
Thanks.