how to calculate exponential in java

Java
import java.util.Math;

Math.pow(number, power);
Source

Also in Java: