What you are seeing is an example of
Variable Assignment, which basically says that the 2 variables are equal.
What I think you want to do is to use the
clone()
method, which will make a new variable and duplicate the values from the old variable.
Reference:
Array Copy in Java[
^]