set 是否添加了重复数据

如果 set 添加了重复数据的话 set.add() 会 返回 false;添加成功返回 true

猜你喜欢

转载自www.cnblogs.com/java9494/p/9688005.html
set