How to Convert Radians to Degrees in Java


In this example, we will learn 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
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments