hi ... can someone please tell me as to why the output in the following code is 1 and not 2
--------------------------------------------------------------
public class example {
int i[] = {0};
public static void main(
String args[]) {
int i[] = {1};
change_i(i);
System.out.println(i[0]);
}
public static void change_i(int i[]) {
int j[] = {2};
i = j;
}
}
---------------------------------------------------------------
Thanx in advance
Samith