public class Student implements Comparable {
	private String firstName;
	private String lastName;
	
	public Student(String firstName, String lastName) {
		this.firstName = firstName;
		this.lastName = lastName;
	}
	
	public String toString() {
		return lastName +  ", " + firstName;
	}
	
	public int compareTo(Object obj) {
		Student other = (Student)obj;
		String myname = lastName + firstName;
		String othername = other.lastName + other.firstName;
		
		return myname.compareTo(othername);
	}
}
