A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
How Do I Know There is No Duplicate Keys in a "set" - a Java Collections
Joined: Nov 19, 2000
Mar 01, 2009 20:46:51
This question is about "set" under the
If a "set" is given to me, how do I get to know there is no duplicate keys in that "set"? Thank you.
Joined: Nov 24, 2005
Mar 01, 2009 21:11:39
A set, by definition, holds no duplicate elements (we don't say keys).
All roads lead to JavaRanch
I agree. Here's the link:
subject: How Do I Know There is No Duplicate Keys in a "set" - a Java Collections
How Do We Know that We Add Duplicate to a Set and Add Duplicate Key to a Map
problems about Collections
How to index java objects in memory
Any Link Between ArrayList and HashMap
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015