boolean deleteDuplicates() { Type[] arrayType = new Type(types.size()]; arrayType = types.toArray(arrayTypes); // copy list into set for automatic deletion // of duplicate entries Set set = new HashSet(arrayType); // copy set back into the original list as a list from a set original = new LinkedList<Type>(Set.asList(set)); System.out.println("\n Duplicates if found have been deleted. 'P' to print.\n"); return true; } ** Errors **-bash-3.00$ javac *javaMain.java:523: cannot find symbolsymbol : constructor HashSet(Main.Type[])location: class java.util.HashSet Set set = new HashSet(arrayType); ^Main.java:525: cannot find symbolsymbol : method asList(java.util.Set)location: interface java.util.Set original = new LinkedList<Type>(Set.asList(set)); ^2 errors