Here you can find the source of avgArrayAndDouble(double[] array, double doublevalue)
public static double[] avgArrayAndDouble(double[] array, double doublevalue)
//package com.java2s; //License from project: Open Source License public class Main { public static double[] avgArrayAndDouble(double[] array, double doublevalue) { double[] result = new double[array.length]; for (int i = 0; i < array.length; i++) { result[i] = (array[i] + doublevalue) / 2; }//from w w w . j av a 2 s. c o m return result; } }