File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes How Do I Know There is No Duplicate Keys in a Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "How Do I Know There is No Duplicate Keys in a "set" - a Java Collections" Watch "How Do I Know There is No Duplicate Keys in a "set" - a Java Collections" New topic
Author

How Do I Know There is No Duplicate Keys in a "set" - a Java Collections

JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
This question is about "set" under the Java Collections.

If a "set" is given to me, how do I get to know there is no duplicate keys in that "set"? Thank you.
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

A set, by definition, holds no duplicate elements (we don't say keys).


[My Blog]
All roads lead to JavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How Do I Know There is No Duplicate Keys in a "set" - a Java Collections