Exception in thread "main" java.lang.NullPointerException
at Collection.SetTest.testAdd(SetTest.java:19)
at Collection.SetTest.main(SetTest.java:93)
不过原因还是想知道
找到问题答案了
public void setTest(){}
改为
public SetTest(){}