public int[] middleWay(int[] a, int[] b) { int MiddleTermA = a[1]; int MiddleTermB = b[1]; int[] returnArray = {MiddleTermA, MiddleTermB}; return returnArray; }