Convert Radians to Degrees using Java

Math.toDegrees method

package app;

public class Main
{
    public static void main(String[] args)
    {
        double radians = 3.14159;
        double degrees = Math.toDegrees(radians);

        System.out.println(degrees);
    }
}

Leave a Comment

Cancel reply

Your email address will not be published.