请问在重写compareTo中“-”这个符号是什么意思?
@Override public int compareTo(Employee other) { return this.salary - other.salary;
如上
return this.salary - other.salary;
“-”是什么意思
@Override public int compareTo(Employee other) { return this.salary - other.salary;
如上
return this.salary - other.salary;
“-”是什么意思
2018-08-30
举报