Why de methods contains(), indexOf() in a Java Collection use o.equals(e) and not e.equals(0)?

Posted by Fernando on Stack Overflow See other posts from Stack Overflow or by Fernando
Published on 2010-05-27T15:38:54Z Indexed on 2010/05/27 15:41 UTC
Read the original article Hit count: 170

Filed under:
|
|

anyone know the reasons of that??

© Stack Overflow or respective owner

Related posts about java

Related posts about collections