Here you can find the source of removeFrom(double[] source, int idx)
public static final double[] removeFrom(double[] source, int idx)
//package com.java2s; //License from project: Open Source License import java.util.Arrays; public class Main { /**Remove a the item at the given index from the array.**/ public static final double[] removeFrom(double[] source, int idx) { double[] rslt = Arrays.copyOf(source, source.length - 1); System.arraycopy(source, idx + 1, rslt, idx, source.length - idx - 1); return rslt; }//from www . ja va2 s. c o m }