From 1a03be557255719afcd4c9adac3eb1fca27e4744 Mon Sep 17 00:00:00 2001 From: zeekling Date: Fri, 30 Apr 2021 18:50:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/zeekling/array/SortArray.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/zeekling/array/SortArray.java b/src/main/java/com/zeekling/array/SortArray.java index b949649..44935df 100644 --- a/src/main/java/com/zeekling/array/SortArray.java +++ b/src/main/java/com/zeekling/array/SortArray.java @@ -5,8 +5,11 @@ public class SortArray { public static void main(String[] args) { int[] a = {2, 4, 6, 8, 3, 6, 9, 12}; doSomething(a, 0, a.length - 1); - for (int i = 0; i <= a.length - 1; i++) + for (int i = 0; i <= a.length - 1; i++) { System.out.print(a[i] + " "); + } + System.out.println(); + } private static void doSomething(int[] a, int start, int end) {