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 d1 = 9.00, d2 = 123, d3 = 0;

        System.out.println("Cube root of " + d1 + " = " + StrictMath.cbrt(d1));

        System.out.println("Cube root of " + d2 + " = " + StrictMath.cbrt(d2));

        System.out.println("Cube root of " + d3 + " = " + StrictMath.cbrt(d3));
    }
}