public class Arg{
public static void main(
String argv[]){
Arg inc = new Arg();
int i =0;
i = i++;
System.out.println(i); //line 1, 0???
int k =0;
System.out.println(k++); //0
System.out.println(k); //line3, 1
}
}
//hi, my confusion is why the line 1 still give 0?
//after i= i++, the i should be 1 now even if it is post increment.
//it should like the same in the line 3.
Someone please explain to me, thanks!