From 58865b025197229ee5da1fbe688b8c77b049434e Mon Sep 17 00:00:00 2001 From: liuyubobobo Date: Wed, 17 Jan 2018 00:17:30 -0800 Subject: [PATCH] Simplify java code in Chapter 02 section 03. --- .../src/bobo/algo/SelectionSort.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/02-Sorting-Basic/Course Code (Java)/03-Selection-Sort-Generate-Test-Cases/src/bobo/algo/SelectionSort.java b/02-Sorting-Basic/Course Code (Java)/03-Selection-Sort-Generate-Test-Cases/src/bobo/algo/SelectionSort.java index 757b770..58d9195 100644 --- a/02-Sorting-Basic/Course Code (Java)/03-Selection-Sort-Generate-Test-Cases/src/bobo/algo/SelectionSort.java +++ b/02-Sorting-Basic/Course Code (Java)/03-Selection-Sort-Generate-Test-Cases/src/bobo/algo/SelectionSort.java @@ -7,7 +7,7 @@ public class SelectionSort { // 我们的算法类不允许产生任何实例 private SelectionSort(){} - public static > void sort(T[] arr){ + public static void sort(Comparable[] arr){ int n = arr.length; for( int i = 0 ; i < n ; i ++ ){