Regarding How to return 2-D string [][]

hi all

I want to return 2-D String [][] at the end of following code. Also i will replace all Arraylist with string array. But i do not know what is the format for return String xx [][]

regards and thanks

pangqin

while(rs.next()){

String[] strArrayTemp=new String[numberOfColumns];

for(int i=0;i<numberOfColumns;i++){

if(rs.getObject(i+1)==null){

strArrayTemp[i]="";

}else{

strArrayTemp[i]=rs.getObject(i+1).toString();

}

}

ArrayRs.add(strArrayTemp);

}

//return (ArrayList)ArrayRs.clone();

//丂i wanna add return string [][] here to replace all arraylist

>

[1197 byte] By [pangqina] at [2007-10-3 2:28:04]
# 1
String[][] whatever = ...;// ...return whatever;What makes you think it's different from any other variable?
CeciNEstPasUnProgrammeura at 2007-7-14 19:27:08 > top of Java-index,Java Essentials,New To Java...