Set
A collection that does not keep duplicate elements.
What is Set in Java?
Set — A collection that does not keep duplicate elements.
import java.util.HashSet;
import java.util.Set;
class TagCollection {
Set<String> tags = new HashSet<>();
}
Level: Freelancer · More Java terms at this level
Updated