This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

HashSet Capacity  RSS feed

 
amit manchanda
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
for the following statement,

Set s = new HashSet(somecollection);

what will be the capacity and load factor of hashset s?
Any clues please ?
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Googling for HashSet, I found this: http://java.sun.com/j2se/1.4.2/docs/api/java/util/HashSet.html#HashSet(java.util.Collection)
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!