News for hackers. Stuff that matters.
Re:On Android, Garbage Collection Can Kill You by jemfinch on Monday June 25, 2012 @05:57PM (#4158947)
You don't need to allocate a new double to call hashCode on it. You can just call hashCode on the double you already have.

Out of curiosity, what language background are you coming from that this isn't obvious?

Re:On Android, Garbage Collection Can Kill You by swah on Tuesday June 26, 2012 @12:07PM (#4162642)
Python mostly.

The constructor for Double is:

    Double(double value)
I thought only 'Double' had the class methods, not 'double'.
Re:On Android, Garbage Collection Can Kill You by jemfinch on Friday June 29, 2012 @12:16AM (#4175214)
You're right, I forgot that there's such a distinction in Java.