Skip to content

Commit 58865b0

Browse files
committed
Simplify java code in Chapter 02 section 03.
1 parent c577048 commit 58865b0

File tree

1 file changed

+1
-1
lines changed
  • 02-Sorting-Basic/Course Code (Java)/03-Selection-Sort-Generate-Test-Cases/src/bobo/algo

1 file changed

+1
-1
lines changed

02-Sorting-Basic/Course Code (Java)/03-Selection-Sort-Generate-Test-Cases/src/bobo/algo/SelectionSort.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ public class SelectionSort {
77
// 我们的算法类不允许产生任何实例
88
private SelectionSort(){}
99

10-
public static <T extends Comparable<T>> void sort(T[] arr){
10+
public static void sort(Comparable[] arr){
1111

1212
int n = arr.length;
1313
for( int i = 0 ; i < n ; i ++ ){

0 commit comments

Comments
 (0)