The doubleValue() method of Integer class of java.lang package is used to convert the value of the given Integer to a Double type after a widening primitive conversion and returns it.
public double doubleValue()
Parameters: The method does not take any parameter.
Return Value: This method returns a numeric value represented by this object after conversion to double type.
Below programs illustrate java.lang.Integer.doubleValue() method.
Attention reader! Don’t stop learning now. Get hold of all the important Java Foundation and Collections concepts with the Fundamentals of Java and Java Collections Course at a student-friendly price and become industry ready.