import java.util.*; public class Exchange { public int[] exchangeAB(int[] AB) { // write code here int [] BA = new int[AB.length]; BA[0] = AB[1]; BA[1] = AB[0]; return BA; } }