if a method returns a Double, why would we call the method “doubleValue” on it? it already returns a double and in calculations, appears to evaluate correctly.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Prior to Java 1.5 auto-boxing (and unboxing) didn’t exist in Java. So, you would need this to extract the underlying primitive from a Double.
If you are unfamiliar with auto-boxing, you can read more here.
http://docs.oracle.com/javase/1.5.0/docs/guide/language/autoboxing.html