VOOZH about

URL: https://www.geeksforgeeks.org/java/integer-doublevalue-method-in-java/

⇱ Integer doubleValue() Method in Java - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Integer doubleValue() Method in Java

Last Updated : 7 Jul, 2018
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. Syntax:
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. Program 1:
Output:
14.0
Program 2:
Output:
120.0
Comment
Article Tags:
Article Tags: