public class EditData {
static List<Student> arrStudent = new ArrayList<Student>();
static Student stu = new Student();
public List<Student> stuAdd(){
return arrStudent;
}
public static void main(String[] args) {
Student stu = new Student(1,"学生一",18);
Student stu1 = new Student(2,"学生二",19);
Student stu2 = new Student(3,"学生三",20);
for (int i = 0; i < 3 ;i++) {
// 报错:无法转型。 String cannot be cast to Student;