As far as I understand this, the bolded part below sets the first "0"
i = 1 (because enhancedForArr[0]=1) then setting enhancedForArr[1]=0.i = 0 (because enhancedForArr[1]=0) then setting enhancedForArr[0]=0.i = 3 (because enhancedForArr[2]=3) then setting enhancedForArr[3]=0.i = 0 (because enhancedForArr[3]=0) then setting enhancedForArr[0]=0.
then you have 0,0,3,0