Hi, my name is Alex,
and I have to find and correct the errors in this piece of code
abstract class A { int a,r;
A(int n, int a) { if (n==0) r=1;
else if(n==1) r=a;
else { this(n-1,a); r=r*a; }
System.out.println(r);
}
public static main(String Args[]) { A obiect=new A(10,2); }
}
i can't do it
any help ?