UNB/ CS/ David Bremner/ teaching/ cs1083/ java/ Student.java
public class Student implements Comparable<Student>{
    protected int id;
    protected String name;

    public Student(int id, String name) {
        this.id = id;
        this.name = name;
    }

    public String toString(){
        return "(" + id + "," + name + ")";
    }

    public int compareTo(Student other) {
        return this.name.compareTo(other.name);
    }

}