From a471c0224b885295460d1dbb61a26d4353fa455e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=9D=A4?= Date: Tue, 29 May 2018 17:44:14 +0800 Subject: [PATCH] fix error comments --- Sorts/src/sort/BubbleSort.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sorts/src/sort/BubbleSort.java b/Sorts/src/sort/BubbleSort.java index 99f63907..1173245f 100644 --- a/Sorts/src/sort/BubbleSort.java +++ b/Sorts/src/sort/BubbleSort.java @@ -43,12 +43,12 @@ class BubbleSort implements SortAlgorithm { BubbleSort bubbleSort = new BubbleSort(); bubbleSort.sort(integers); - // Output => 1 4 6 9 12 23 54 78 231 + // Output => 231, 78, 54, 23, 12, 9, 6, 4, 1 print(integers); // String Input String[] strings = {"c", "a", "e", "b","d"}; - //Output => a b c d e + //Output => e, d, c, b, a print(bubbleSort.sort(strings)); }