double[] retArray = new double[pArray.length]; for (int i = 0; i < pArray.length; i++) { retArray[i] = pArray[i] + getValue(); } return retArray;