Double with double

Source: Internet
Author: User

  

A double is a class double that is the underlying data type. The double type is a wrapper class of double, which, after JDK1.5, can be directly assigned to each other, called auto-unpacking and auto-boxing. Looking at your tips, I guess your JDK version was 1.5 ago. If so, you can use the method in double to convert the wrapper class to a basic data type, such as double amount = Rec.getamount (). Doublevalue ();D ouble There are ways to call equals is a method that belongs to a class If you want to compare the value of the size, then use = = but double must first turn into double
As for how to turn, look at the double method.

Double with double

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.