为什么不能输出结果呢?
public class Book {
private String name;
public String GetBook()
{
int id=0;
setName("java");
return id+this.name;
}
private void setName(String name)
{
this.name=name;
}
public Book getBook(){
return this;
}
public static void main(String[] args)
{
Book b=new Book();
b.GetBook();
//b.setName("web");
//b.getBook();
}
}