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 = 0.90, d2 = 5.00, d3 = 0;

        System.out.println("arc sine value of " + d1 + " = " + StrictMath.asin(d1));

        // returns NaN if argument is NaN or its absolute value is greater than 1
        System.out.println("arc sine value of " + d2 + " = " + StrictMath.asin(d2));

        // returns zero if the argument is 0
        System.out.println("arc sine value of " + d3 + " = " + StrictMath.asin(d3));
    }
}