H
harry
I have 2 multi-dim arrays
double[][] subTotals = null;
String[][] rowTitles = null;
I want to pass them to a function that initialises & populates them like
so -
loadData( rowTitles, subTotals);
this function contains lines like -
subTotals = new double[15][4];
rowTitles = new String[15][9];
They are then populated but when the funtion exits both arrays are back to
null.
I understand (well think I do) the difference between primitive types &
objects as parameters & thought because this would work or at the very least
the rowTitles array would as it's String's
Any ideas?
thanks
harry
double[][] subTotals = null;
String[][] rowTitles = null;
I want to pass them to a function that initialises & populates them like
so -
loadData( rowTitles, subTotals);
this function contains lines like -
subTotals = new double[15][4];
rowTitles = new String[15][9];
They are then populated but when the funtion exits both arrays are back to
null.
I understand (well think I do) the difference between primitive types &
objects as parameters & thought because this would work or at the very least
the rowTitles array would as it's String's
Any ideas?
thanks
harry