TreeSet存储自定义对象中老师运行结果为:
lisi007...compareto...lisi02
lisi09...compareto...lisi02
lisi09...compareto...lisi007
lisi09...19
lisi007...20
lisi02...22
而我的运行结果为:
lisi02...compareto...lisi02
lisi007...compareto...lisi02
lisi09...compareto...lisi02
lisi09...compareto...lisi007
lisi09...19
lisi007...20
lisi02...22
多了lisi02与自身的比较,原因是? |
|