在看this时遇到问题,希望大家给出解释
public class Leaf{
int i;
Leaf(int i){this.i = i;
}
Leaf increament(){
i++;
return this;
}
void print(){
System.out.println("i = "+i);
}
public static void main(String[] args){
Leaf leaf = new Leaf(8);
leaf.intcreament().intcreament().print();//这句是什么意思??
}
}
------解决方案--------------------