You can do a simple method depending on your need to either loop
y=1;
for(x=0;x<otherArray.length();x++)
{
firstArray[x]=otherArray[y];
}
if you are trying to swap all values from one array to another
or
for(x=0;x<otherArray.length();x++)
{
tempArray[x]=firstArray[x];
firstArray[x]=secondArray[x];
secondArray[x]=tempArray[x];
}
if you want to swap same items in each array, at least as a really basic way of doing it. You may need alterations if the arrays are different lengths.>