class Student{
String name;
int age;
int score;
public Student(String name, int age, int score) {//你的代码中的形参写的不对应。
this.name = name;
this.age = age;
this.score = score;
}
public String toString(){
return "Student[name:"+name+",age:"+age+",score:"+score+"]";
}