Your code shows the contents of the array element minus 1. It does not change the contents of the array.
You need to use an assignment statement if you want to change the element's value.