Java Collections: Sets

A Set is a Java Collection that does not allow duplicate elements.  A Java Set is embodiment of a Mathematical Set, which comprises of zero or more distinct, possibly infinite distinct unordered elements. Like all other collections, Sets in Java comprise of an interface aptly named Set and a number of concrete implementations. Differences Between Java Sets and Sets in Mathematics A Java… Continue reading Java Collections: Sets