file now only read once

This commit is contained in:
2020-06-11 12:00:27 -05:00
parent 7f59fadc42
commit ba8820896e
9 changed files with 26 additions and 26 deletions

View File

@@ -2,8 +2,8 @@ package Sorting;
public class SelectionSorter extends Sorter {
//a class to sort an array of numbers using selection sort
public SelectionSorter(String filename){
super("selection sort", filename);
public SelectionSorter(RandomNumberFileReader reader){
super("selection sort", reader);
}
void sort(){