Remember that x++ evaluates after assignation -- so if x = 3, then the next line is x = x++, x will still be 3git add -A
Further testing with x++
Removed debug printlns and changed x++ to ++x to get desired result.