Skip to content

Commit

Permalink
Simplify java code in Chapter 02 section 03.
Browse files Browse the repository at this point in the history
  • Loading branch information
liuyubobobo committed Jan 17, 2018
1 parent c577048 commit 58865b0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public class SelectionSort {
// 我们的算法类不允许产生任何实例
private SelectionSort(){}

public static <T extends Comparable<T>> void sort(T[] arr){
public static void sort(Comparable[] arr){

int n = arr.length;
for( int i = 0 ; i < n ; i ++ ){
Expand Down

0 comments on commit 58865b0

Please sign in to comment.