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 square root of 9, i.e. 3
        System.out.println(Math.sqrt(9));
        // returns square root of 25.5
        System.out.println(Math.sqrt(25.5));
    }
}