Hi All,
I am new to
java .I am finding difficulty in understanding the below program flow.
Can any one explain me how the program works.
public class example {
int i = 0;
public static void main(
String args[]) {
int i = 1;
change_i(i);
System.out.println(i);
}
public static void change_i(int i) {
i = 2;
i *= 2;
}
}
Thanks,
Meena