Java tutorial
public class Main { public static void main(String[] args) { double x = 1.2; double y = 5.4; // print x raised by y and then y raised by x System.out.println("Math.pow(" + x + "," + y + ")=" + Math.pow(x, y)); System.out.println("Math.pow(" + y + "," + x + ")=" + Math.pow(y, x)); } }