The constructor creates an empty set: Set<String> regNums = new HashSet<String>();