this用法的小问题?
public class Leaf {
private int i = 0;
Leaf increment()//这是个构造方法吗?怎么还有个increment?
{
i++;
return this;//想知道这个this指的是什么?
}
void print() {
System.out.println("i = " + i);
}
public static void main(String[] args) {
Leaf x = new Leaf();
x.increment().increment().increment().print();//这句怎么么运行?
}