diff --git a/Sorting/WordSelectionSorter.java b/Sorting/WordSelectionSorter.java new file mode 100644 index 0000000..47631b4 --- /dev/null +++ b/Sorting/WordSelectionSorter.java @@ -0,0 +1,23 @@ +package Sorting; + +public class WordSelectionSorter extends WordSorter{ + + public WordSelectionSorter(RandomWordFileReader reader){ + super("selection sort", reader); + } + + void sort(){ + for(int i=0;i0){ + currentMinIndex = j; + } + } + swap(words,i,currentMinIndex); + } + } + + +} \ No newline at end of file