posted 20 years ago
Assigning array1=array2 will, as you have probably already figured out, just give you two pointers to the same array.
To copy any array, you can use the static method arraycopy() in the java.lang.System class, like this:
To find out what the various parameters mean, see the Javadoc for this method.