If there is an int/integer in a array, and the same int/integer comes at the same spot, does it cancel each other out or does it reassing the value? (Java)