Writing a method reference

Report a typo

There is a standard class Math.


class Math {
    
    /**
     * Converts an angle measured in degrees to an approximately
     * equivalent angle measured in radians.  The conversion from
     * degrees to radians is generally inexact.
     */
    public static double toRadians(double angdeg) {
        return angdeg / 180.0 * PI;
    }
    
    // other methods
}

How to write a method reference to the method toRadians?

Enter the correct answer without ; at the end and without spaces.
Enter a short text
___

Create a free account to access the full topic