posted 24 years ago
hi Shabbir,
problem with your code is that u r trying to access instance variable a in main without a object of class d.
your main should be like this==>
public static void main(String args[]) {
d f = new d();
f.increase(f.a);
System.out.println(f.a[2]);
}
I hope this helps you.
ashish