## BigIntegerMath ceilingPowerOfTwo() function | Guava | Java

The ceilingPowerOfTwo(BigInteger x) method of Guava’s BigIntegerMath class returns the smallest power of two greater than or equal to x. This is equivalent to BigInteger.valueOf(2).pow(log2(x,… Read More »

## BigIntegerMath binomial() function | Guava | Java

The binomial(int n, int k) method of Guava’s BigIntegerMath class returns n choose k, also known as the binomial coefficient of n and k, that… Read More »

## BigIntegerMath sqrt() function | Guava | Java

The method sqrt(BigInteger x, RoundingMode mode) of Guava’s BigIntegerMath class returns the square root of x, rounded with the specified rounding mode. Syntax: public static… Read More »

## BigIntegerMath log2() function | Guava | Java

The method log2(BigInteger x, RoundingMode mode) of Guava’s BigIntegerMath class returns the base-2 logarithm of x, rounded according to the specified rounding mode. Syntax: public… Read More »

## BigIntegerMath log10() function | Guava | Java

The method log10(BigInteger x, RoundingMode mode) of Guava’s BigIntegerMath class returns the base-10 logarithm of x, rounded according to the specified rounding mode. Syntax: public… Read More »

## BigIntegerMath floorPowerOfTwo() function | Guava | Java

The method floorPowerOfTwo(BigInteger x) of Guava’s BigIntegerMath class returns the largest power of two less than or equal to x. This is equivalent to BigInteger.valueOf(2).pow(log2(x,… Read More »

## BigIntegerMath isPowerOfTwo() function | Guava | Java

The method isPowerOfTwo(BigInteger x) of Guava’s BigIntegerMath class returns true if x represents a power of two. Syntax: public static boolean isPowerOfTwo(BigInteger x) Parameters: This… Read More »

## BigIntegerMath factorial() function | Guava | Java

The method factorial(int n) of Guava’s BigIntegerMath class is used to find the factorial of the given number. It returns n!, that is, the product… Read More »

## Sets powerSet() function | Guava | Java

Guava’s Sets.powerSet() returns the set of all possible subsets of set. Syntax: public static <E> Set<Set<E>> powerSet(Set<E> set) Here, set is the set of elements… Read More »

## Ints asList() function | Guava | Java

Guava’s Ints.asList() returns a fixed-size list backed by the specified array. Syntax: public static List<Integer> asList(int[] array) Parameters: This method takes the array as parameter… Read More »

## Ints contains() function | Guava | Java

Guava’s Ints.contains() returns true if target is present as an element anywhere in array. Syntax: public static boolean contains(int[] array, int target) Parameters: This method… Read More »

## Ints lastIndexOf() function | Guava | Java

Guava’s Ints.lastIndexOf() returns the index of the last appearance of the value target in array. Syntax: public static int lastIndexOf(int[] array, int target) Parameters: array:… Read More »

## Ints concat() function | Guava | Java

Guava’s Ints.concat() method is used to combine the arrays passed as parameters into a single array. This method returns the values from each provided array… Read More »

## Sets difference() function | Guava | Java

Guava’s Sets.difference() returns an unmodifiable view of the difference of two sets. Syntax: public static <E> Sets.SetView<E> difference(Set<E> set1, Set<?> set2) Return Value: This method… Read More »

## Java program to remove nulls from a List Container

List is an ordered collection of objects which allows to store duplicate values or null values, in the insertion order. So it is very important… Read More »