array list
807598Jul 24 2006 — edited Jul 24 2006hi,
here is the source code:
List[ ][ ] ite = new ArrayList[82][5];
int count1 =0;
int count2 = 0;
Iterator iter = query.iterate();
ro = (ReadOracle) iter.next();
while(iter.hasNext()){
// PROBLEM PART
ite[count1][count2].add((int)count1);
ite.add(count1,[count1][count2]);
count2++;
ite[count1][count2].add((String)ro.getobjid);
count1++;
count2 = 0;
//END OF PROBLEM PART
ro = (ReadOracle) iter.next();
}//end of while
Above I try to add an integer to Array List which has rows and columns.
I also read from database and the Array List will get Strings,too.
For this reason I have no chance to declare the type of Array List, so
could you show me a way to write Strings and integers that is read from database to the array list that is initialized in two dimension.
Thanks