Of course! It's that formula you memorized in high school (and forgot five minutes later).

Actually the formula is not that bad:

radians = (Math.PI/180.0)*degrees;

Since this is so commonly done, the Java Math class has convenient methods to do it and the opposite:

public static doubletoRadians(double angdeg) Converts an angle measured in degrees to the equivalent in radians public static doubletoDegrees(double angrad) Converts an angle measured in radians to the equivalent in degrees.

Here is our sample program:

Fill in the blank so that the program works.