File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/main/java/com/thealgorithms/sorts Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ private <T extends Comparable<T>> T findMin(T[] array) {
121
121
private <T extends Comparable <T >> T findMax (T [] array ) {
122
122
T max = array [0 ];
123
123
for (T element : array ) {
124
- if (SortUtils .greater (element ,max )) {
124
+ if (SortUtils .greater (element , max )) {
125
125
max = element ;
126
126
}
127
127
}
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ class ExchangeSort implements SortAlgorithm {
31
31
public <T extends Comparable <T >> T [] sort (T [] array ) {
32
32
for (int i = 0 ; i < array .length - 1 ; i ++) {
33
33
for (int j = i + 1 ; j < array .length ; j ++) {
34
- if (SortUtils .greater (array [i ], array [j ])){
34
+ if (SortUtils .greater (array [i ], array [j ])) {
35
35
SortUtils .swap (array , i , j );
36
36
}
37
37
}
You can’t perform that action at this time.
0 commit comments