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) {
        // returns 2 raised to 2, i.e. 4
        System.out.println(Math.pow(2, 2));
        // returns -3 raised to 2, i.e. 9
        System.out.println(Math.pow(-3, 2));
    }
}