How the following code works:
public class
Test {
public static void main(
String[] args)
{
int a[] = {4,5,9,8,6,6,0};
int i=1;
int x,y;
a[i] = i+= a[i++];
System.out.println(a[i]);
System.out.println(i);
}
}
The output is 0,6...........
Can anyone explain in a detailed manner please?