Using the pow()-method in Java(power) September 12, 2016 by cloud host Use Math.pow(double, double), or statically import pow as such: import static java.lang.Math.pow;