MainClass.java Source code

Java tutorial

Introduction

Here is the source code for MainClass.java

Source

/*
 * Output:
     
sin = 0.007853900888711334
    
    
 */

public class MainClass {
    public static void main(String args[]) {
        double radians = 0.45 * Math.PI / 180;
        System.out.println("sin = " + Math.sin(radians));

    }
}