error: type Set does not take parameters
package set;
import java.util.*;
public class SetTest
{
public static void main(String[] args)
{
String [] things = {"appple", "bob", "ham", "bob", "bacon"};
List<String> list = Arrays.asList(things);
System.out.printf("%s ", list);
System.out.println();
Set<String> set = new HashSet<String>(list);
System.out.printf("%s ", set);
}
}