newDt.importRow(dt.dataSource[i]);
when I call above I want to reach the object's itself in the block below. I mean I want to reach to countnumber of newDt object with getCount() methods. I tried this using with this keyword but it did not run. how do I do this?
public void importRow(Object[] row){
int newCount = this.getCount()+1;
Object[][] newDataSource = new Object[getCount()+1][getColumns().length];
for (int i = 0; i < newDataSource.length; i++) {
for (int j = 0; j < getColumns().length; j++) {
newDataSource[i][j] = this.getValueByColumnIndex(i, j);
}
}
for (int i = 0; i < getColumns().length; i++) {
newDataSource[newCount][i] = row[i];
}
}