In this example we will show you how to use Math.sin() in Java.
Source Code
package com.beginner.examples;
public class Sin {
public static void main(String[] args){
System.out.println(Math.sin(20)); // use Math.sin()
}
}
Output:
0.9129452507276277