Quantcast
Channel: Difference between double and Double in comparison - Stack Overflow
Viewing all articles
Browse latest Browse all 6

Answer by Reimeus for Difference between double and Double in comparison

$
0
0

Content checking is only reliable for == when checking primitive types. For objects types it is always better to use the equals method:

c.equals(d)

Viewing all articles
Browse latest Browse all 6

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>