Peter Romianowski said: .. > Try new Float(1.0).equals(new Integer(1)). (Hint: The result is 'false').
right, and since it returned false, you move on to class checking and conversions. i'm thinking you didn't read my post carefully. > I think .equals should be the last test. Numbers first, then Comparable and > then .equals (which only applies to == and != anyway). highly inefficient for the case where equals() returns true. (and that applies to both == and !=). Nathan Bubna [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
