Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

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));

    }
}