Skip to content

Tag Archives: Guava-IntMath

The divide(int p, int q, RoundingMode mode) method of Guava’s IntMath Class accepts three parameters and calculates the result of dividing first parameter by second… Read More
checkedPow(int b, int k) is a method of Guava’s IntMath Class which accepts two parameters b and k and is used to find the k-th… Read More
The checkedMultiply(int a, int b) is a method of Guava’s IntMath Class which accepts two parameters a and b, and returns their product. Syntax:Attention reader!… Read More
The checkedAdd(int a, int b) is a method of Guava’s IntMath Class which accepts two parameters a and b, and returns their sum. Syntax:Attention reader!… Read More
The checkedSubtract(int a, int b) is a method of Guava’s IntMath Class which accepts two parameters a and b, and returns their difference. Syntax:Attention reader!… Read More
The log10(int x, RoundingMode mode) method of Guava’s IntMath Class accepts two parameters and calculates the base-10 logarithmic value of the first parameter rounded according… Read More
The method gcd(int a, int b) of Guava’s IntMath class returns the greatest common divisor of a, b. Syntax :Attention reader! Don’t stop learning now.… Read More