I need help with this, im writing a league system and i need to order the teams by the points they have received max to min, im lost to where to begin any help would be good.
public class League
{
/* instance variables */
private Team name;
private int points;
/**
* Constructor for objects of class League.
*/
public League(Team aname)
{
super();
name = aName;
points = 0;
}
/**
* Returns the receiver's name Team
*/
public Dancer getName()
{
return this.name;
}
/**
* Returns the receiver's points
*/
public int getPoints()
{
return points;
}
/**
* Sets the receiver's points
*/
public void setPoints(int aPoints)
{
this.points = aPoints;
}
method for order points
public void orderPoints()
{
}