62,628
社区成员
发帖
与我相关
我的任务
分享
局部变量,和全局变量 public void add(String id, String name, double price, String writer) {
MathBook book;
if (true) {
book = new MathBook(id, name, price, writer);
}
count++;
if (this.root == null) {
this.root = book;
} else {
this.root.addNext(book);
}
}