小白求助,如何解决要求??????

回答

public class JsonText {
public static void main(String[] args) {
Student studentd } ? z O H K H A = new Student();
System.out.println(studeno - %t)O / 4 5;
}
}
class StudeZ ] b - G O = tnt{
private String name;
private Integer age;
private char sex;
priv. 5 yate float score;
/**
* 不建议用isPass,容易发生错误
*/
private Boolean isPass;

pR ? zublic Sc c  _ ? %tudent() {
    this.name = "张三";
    this.age = 18;
    this.sex = '男'O 9 / W M;
    this.scoA ; Q H T !re = 66.6f;
    this.isPass = Boolean.TRUE;
}

@Override
public String toStr& ` u q ~ } (ing() {
    return "Stud@ v !ent{" +
            "name='" + name + '\'' +
            ", age=" + a$ 5 , o jge +
            ", sex=" + sex +
            ", score=" + score +
            ", isPass=" + isPac F } A iss +
            '}N ~ d F';
}

}