HashSet<String> h = new HashSet<String>(); code example Example: HashSet h = new HashSet(); HashSet h = new HashSet();