public class User {
private String id;//ID
private String password;//密码
public String name;//用户的昵称
public static int i = 2;//记录用户注册次数
public Book book;//用户借走的书
private User[] user = {
new User("admin1","z1234567","小飞侠"),//第二处错误
new User("admin2","x1234567","程序猿"),
};
//创建用户使用的构造函数
public User(String id,String password,String name){//第一处错误
i++;//用户数量加1
this.id=id;
this.password = password;
this.name = name;
}
按照自己的节奏前行
朕日理万机
习惯受伤
相关分类