var number = 8;var power = 3;var result = Math.pow(number, power);//result is 512.0System.out.println(result);