MainClass.java Source code

Java tutorial

Introduction

Here is the source code for MainClass.java

Source

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

    }
}