Here you can find the source of subArray(double[] array, int startIndex, int length)
public static double[] subArray(double[] array, int startIndex, int length)
//package com.java2s; //License from project: Apache License public class Main { public static double[] subArray(double[] array, int startIndex, int length) { double[] result = new double[length]; System.arraycopy(array, startIndex, result, 0, length); return result; }/* ww w . j a v a 2 s . c o m*/ }