**题目:**List中存放若干学生对象(学生有学号,姓名,性别等属性),去除List中重复的元素,并按学号降序输出。(请百度并利用LinkedHashSet集合,既不会重复,同时有可预测的顺序即输入顺序)
import java.util.Objects;
public class Student implements Comparable<Student> {
public Student(int code, String name, char sex) {
this.code = code;
this.name = name;
this.sex = sex;
}
private int code;
private String name;
private char sex;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getCode() {
return code;
}
public void setCode(int code) {
this