Betty Rubble? Well, I would go with Betty... but I'd be thinking of Wilma.
Manisekar
public int[] resizeArr(int [] b,int n)
{
z = n;
b = new int[10];
b = (int[])ArrayUtils.expand(b);
return b;
}
SCJP 5.0
Manisekar
Spot false dilemmas now, ask me how!
(If you're not on the edge, you're taking up too much room.)
1 + 1 = 10 is always one of the plausible truths for me.
Mark Nathon wrote:You can call a method by value or by reference.
So, any modification to the array elements in another function would mean that the original array would also be modified similarly.
I see Stephan has already explained your mistake. Thank you for giving us that linkMark Nathon wrote:. . . You can call a method by value or by reference. . . . Java always passes arrays and vectors by reference. . . .
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |