String[] rowdata=new String[] {}; 
for(int i= 0;i< 5; i++){
rowdata[i] = "aaa";
}
像上面这样,动态的给string数组赋值。或者有别的方法代替也行,多谢!!!