public BigInteger[] sqrtAndRemainder ()

Returns an array of two BigIntegers containing the integer square root s of this and its remainder this - s*s, respectively.

Returns:  an array of two BigIntegers with the integer square root at offset 0 and the remainder at offset 1

ArithmeticException    if this is negative. (The square root of a negative integer val is (i * sqrt(-val)) where i is the imaginary unit and is equal to sqrt(-1).)

See also:

Since:  9