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
method, which will make a new variable and duplicate the values from the old variable.
Array Copy in Java