Get the power value in Java
Description
The following code shows how to get the power value.
Example
//from w ww. jav a 2s . c om
public class Main {
public static void main(String[] args) {
System.out.println(Math.pow(2, 2));
}
}
The code above generates the following result.