Fixed tiny error
This commit is contained in:
parent
8aa3bf1b6c
commit
5d5ceedfa8
@ -14,12 +14,12 @@ public class Main {
|
||||
ByteList linked = new LinkedByteList();
|
||||
// ByteList combined = new CombinedByteList(16);
|
||||
|
||||
testList(array);
|
||||
// testList(array);
|
||||
testList(linked);
|
||||
// testList(combined);
|
||||
|
||||
testSort(array);
|
||||
// testSort(linked);
|
||||
// testSort(array);
|
||||
testSort(linked);
|
||||
// testSort(combined);
|
||||
}
|
||||
|
||||
@ -90,7 +90,7 @@ public class Main {
|
||||
// ByteSort bogo = new BogoSort();
|
||||
//
|
||||
// // sort the lists with the sorting algorithm
|
||||
// bubble.sort(list);
|
||||
bubble.sort(list);
|
||||
merge.sort(list);
|
||||
// bogo.sort(list.copy());
|
||||
}
|
||||
|
||||
@ -117,6 +117,7 @@ public class LinkedByteList implements ByteList {
|
||||
@Override
|
||||
public void clear() {
|
||||
root = null;
|
||||
size = 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Loading…
Reference in New Issue
Block a user