In this example we will show the method to convert radians to degrees in Java.
Source Code
package com.beginner.examples;
public class Radians2Degrees {
public static void main(String[] args){
//converts the given angle from radians to degrees format.
System.out.println(Math.toDegrees(5));
}
}
Output:
286.4788975654116