Here you can find the source of subtractMin(Double[] array)
public static Double[] subtractMin(Double[] array)
//package com.java2s; //License from project: Open Source License public class Main { public static Double[] subtractMin(Double[] array) { for (int i = 0; i < array.length; i++) { array[i] = array[i] - array[0]; }// w w w. j a va2 s . c o m return array; } }