// double Math.pow(double base, double exponent) double twoCubed = Math.pow(2, 3); System.out.println("Two raised to third power: " + twoCubed); // 8.0