Answer:
public static void swapPairs(ArrayList strList)
{
for(int i = 0; i < strList.size() - 1; i += 2)
{
String temp1 = strList.get(i);
String temp2 = strList.get(i + 1);
strList.set(i, temp2);
strList.set(i + 1, temp1);
}
}
Step-by-step explanation: