Fill the given BigInteger array with the given value. - Java java.math

Java examples for java.math:BigInteger

Description

Fill the given BigInteger array with the given value.

Demo Code


//package com.java2s;
import java.math.BigInteger;

public class Main {
    /**//from w  ww .ja v a 2s. com
     * Fill the given BigInteger array with the given value.
     * 
     * @param array
     *            the array
     * @param value
     *            the value
     */
    public static void fill(BigInteger[] array, BigInteger value) {
        for (int i = array.length - 1; i >= 0; i--) {
            array[i] = value;
        }
    }
}

Related Tutorials