User talk:Dan world

package bean;

public class Student implements Comparable { private String name; private double avg; public Student(String name, double avg) { super; this.name = name; this.avg = avg; }	public String getName { return name; }

public void setName(String name) { this.name = name; }

public double getAvg { return avg; }

public void setAvg(double avg) { this.avg = avg; }

@Override public int compareTo(Student arg0) { if(this.avgarg0.avg) return -1; return 0; }	public String toString {		return name+"\t"+avg; }

}