From 49d67c356024a9ce768ff0c148d947fc2a3338d8 Mon Sep 17 00:00:00 2001 From: tang-yuxingxx <2438842647@qq.com> Date: Mon, 15 Apr 2024 15:42:29 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=8E=92=E5=BA=8F?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- codes/Xbkpxg12138/15895520.java | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 codes/Xbkpxg12138/15895520.java diff --git a/codes/Xbkpxg12138/15895520.java b/codes/Xbkpxg12138/15895520.java new file mode 100644 index 000000000..17a757832 --- /dev/null +++ b/codes/Xbkpxg12138/15895520.java @@ -0,0 +1,11 @@ +public static class bubbleSort{ + foe(int i=0;ia[j+1]){ + int temp = a[j]; + a[j] = a[j+1]; + a[j+1] = temp; + } + } + } +} -- Gitee From 2dcadf83ac9a6fdf7c5de56018fce332a52adf45 Mon Sep 17 00:00:00 2001 From: "@tang-yuxingxx" <2438842647@qq.com> Date: Mon, 15 Apr 2024 15:55:17 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=8E=92=E5=BA=8F?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 15895520.java | 0 15899520.java | 11 +++++++++++ codes/Xbkpxg12138/15895520.java | 4 ++-- 3 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 15895520.java create mode 100644 15899520.java diff --git a/15895520.java b/15895520.java new file mode 100644 index 000000000..e69de29bb diff --git a/15899520.java b/15899520.java new file mode 100644 index 000000000..c57d41855 --- /dev/null +++ b/15899520.java @@ -0,0 +1,11 @@ +public static void bubbleSort(int [] a, int n){ + for(int i=0;ia[j+1]){ + int temp = a[j]; + a[j] = a[j+1]; + a[j+1] = temp; + } + } + } +} diff --git a/codes/Xbkpxg12138/15895520.java b/codes/Xbkpxg12138/15895520.java index 17a757832..1a8bcbaef 100644 --- a/codes/Xbkpxg12138/15895520.java +++ b/codes/Xbkpxg12138/15895520.java @@ -1,5 +1,5 @@ -public static class bubbleSort{ - foe(int i=0;ia[j+1]){ int temp = a[j]; -- Gitee