This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
I tried copying arrays: array1 = array2; It's not working. Someone said to copy an array you need to use Arraycopy I don't know how to use this? Any help?
I need more help!
Ernest Friedman-Hill
author and iconoclast
Marshal
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.