Here you can find the source of subArray(BigInteger[] input, int start, int end)
Parameter | Description |
---|---|
input | - the input BigInteger array |
start | - the start index |
end | - the end index |
public static BigInteger[] subArray(BigInteger[] input, int start, int end)
//package com.java2s; import java.math.BigInteger; public class Main { /**//from w ww . j a va2s . c om * Generates a subarray of a given BigInteger array. * * @param input - * the input BigInteger array * @param start - * the start index * @param end - * the end index * @return a subarray of <tt>input</tt>, ranging from <tt>start</tt> to * <tt>end</tt> */ public static BigInteger[] subArray(BigInteger[] input, int start, int end) { BigInteger[] result = new BigInteger[end - start]; System.arraycopy(input, start, result, 0, end - start); return result; } }