Recently, I figured you can duplicate a array like this
System.arraycopy(src,0,dup,0,src.length);
However, even though the two arrays are the same, when you compare them using
if(src==dup)
...//print true
else if(src!=dup)
...//print false
It would always print false. Are there anyways to duplicate an array that does not change with the original one while also being able to compare those two correctly?