Java BigInteger Calculate fill(BigInteger[] array, BigInteger value)

Here you can find the source of fill(BigInteger[] array, BigInteger value)

Description

Fill the given BigInteger array with the given value.

License

Open Source License

Parameter

Parameter Description
array the array
value the value

Declaration

public static void fill(BigInteger[] array, BigInteger value) 

Method Source Code

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

public class Main {
    /**//from w  w  w .  j  a  v  a  2  s .co  m
     * 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

  1. equal(BigInteger int1, BigInteger int2)
  2. equals(BigInteger[] a, BigInteger[] b)
  3. extractBoolean(BigInteger bi, int index)
  4. extractFloat(BigInteger bi, int start, int end, int decimal)
  5. extractInt(BigInteger bi, int start, int end)
  6. first(BigInteger i, BigInteger j)
  7. firstLtSecond(BigInteger first, BigInteger second)
  8. gcd(BigInteger a, BigInteger b)
  9. GCD(BigInteger x, BigInteger y)