public boolean testBit (int n)

Returns true if and only if the designated bit is set. (Computes ((this & (1<<n)) != 0).)

Parameters:
n    index of bit to test.

Returns:  true if and only if the designated bit is set.

Exceptions:
ArithmeticException    n is negative.