/**
* @author lautturi.com
* Java example:Java get the value of a number raised to the power of another number
*/
import java.util.*;
public class Lautturi {
public static void main(String[] args) {
System.out.println(Math.pow(2, 3));
System.out.println(Math.pow(3, 3));
System.out.println(Math.pow(10, 3));
}
}Sou.www:ecrlautturi.comoutput:
8.0 27.0 1000.0