object[] obj111 = null;
object c=obj111;
大家看看這個文法對不對,能否正常執行。
//處理struts object數組問題
private object objectarraytostring(object obj){
if (obj.getclass().isarray() && obj.getclass().getcomponenttype()==string.class){
string[] strs = (string[]) obj;
object[] obj111 = null;
object c=obj111;
string s = "";
for (string str:strs){
s=fieldvalue+str;
}
return s;
}else{
return obj;
}
}