I'm trying something like this:
class ms {
ms(int[] a) {
!! int[] a=new int[a.length];
this.a=a;
}
}
The IDE shows a.can't be resolved(in line ##), and duplicate local variable (in line !!). How to fix this? Basically I want the instance variable of class ms to have the same name as the parameter passed in the constructor.
Thanks