Here you can find the source of divide(double[] a, double sum)
public static void divide(double[] a, double sum)
//package com.java2s; public class Main { public static void divide(double[] a, double sum) { for (int i = 0; i < a.length; i++) { a[i] /= sum;//from www .j av a 2 s . co m } } }