String[] a= new String[]{"1","2","3","4"........}
String[] b= new String[]{"11","22","33","44"........}
String[] c= new String[]{"111","222","333","444"........}
......
有N个数组,且数组里有N个元素,如何分别取出每个数组里的第1-N个元素,添加到对象里,即 class Student{
String id;
String name;
....
//id 和name是Student的属性
}
Student.setId(a[0]);
Student.setName(b[0])....;
Student.setId(a[1]);
Student.setName(b[1])....; |
|