java: public static void fill(double[] array, double value) {for (int i = 0; i < array.length; i++) {array[i] = value;}}
C#: public static void fill(double[] array, double value){{for (int i = 0; i < array.Length; i++){array[i] = value;}}}