Following static method takes a double argument and returns its sin value.

Java Code:
public static double sin(double x) { 
return Math.sin(x); 
}