1>>如何判断一个Int 位数。。
int i /10;
int i /10;
如果等于0则,个位,等于1为10,其他类似
2>>
public class A{
int x,y;
B b(x,y,this) // 把当前对象A 传到B
}
class B{
int x,,y;
A a;
B(int x ,int y,){
this.x = x;
this.y = y
}
b(int x, int y,A a){
this(x,y); //调用B的第一种构造方法 传进去X Y ,
this.a = a; //B中新建的a初始化
}
}