public class InsertionSorter
implements SorterInterface
{
private String description;
public InsertionSorter()
{
this.description =
"Insertion Sort";
}
public String getDescription()
{
return this.description;
}
public void sort(ArrayList data)
{
}
private int
findInsertionPoint( ... )
{
}
}
|
public class SelectionSorter
implements SorterInterface
{
private String description;
public SelectionSorter()
{
this.description =
"Selection Sort";
}
public String getDescription()
{
return this.description;
}
public void sort(ArrayList data)
{
}
private void swap( ... )
{
}
}
|