• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Wrappers with String and Collections

 
Sekhar Choudary
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


I am getting the size as 3
Can anyone expalin this.
Thanks
 
Henry Wong
author
Marshal
Pie
Posts: 21007
77
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To understand why this is so, you need to understand hashing. And since you asked about hashing here...

http://www.coderanch.com/t/269877/java-programmer-SCJP/certification/Help-hashcodes

I think it is best if you undertand that first.

Henry
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic