From bf67c2e1dd5c1d1677b7a9bec5406ef1ee5f4108 Mon Sep 17 00:00:00 2001 From: jasonlliu <5340989+qiaosong_lw@user.noreply.gitee.com> Date: Thu, 3 Nov 2022 07:36:57 +0000 Subject: [PATCH 1/2] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20jasonlliu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- codes/jasonlliu/.keep | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 codes/jasonlliu/.keep diff --git a/codes/jasonlliu/.keep b/codes/jasonlliu/.keep new file mode 100644 index 00000000..e69de29b -- Gitee From 7d3cd887ce70870b28c4f25ad42a632f2bd915bd Mon Sep 17 00:00:00 2001 From: jasonlliu <5340989+qiaosong_lw@user.noreply.gitee.com> Date: Thu, 3 Nov 2022 07:37:58 +0000 Subject: [PATCH 2/2] add codes/jasonlliu/10044127.java. Signed-off-by: jasonlliu <5340989+qiaosong_lw@user.noreply.gitee.com> --- codes/jasonlliu/10044127.java | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 codes/jasonlliu/10044127.java diff --git a/codes/jasonlliu/10044127.java b/codes/jasonlliu/10044127.java new file mode 100644 index 00000000..667eee0f --- /dev/null +++ b/codes/jasonlliu/10044127.java @@ -0,0 +1,11 @@ +public static void bubbleSort(int [] a,int n){ + for(int i = 0; i < n-1 ; i++){ + for (int j = 0;j < n-1-i;j++){ + if(a[j] > a[j+1]){ + int temp = a[j]; + a[j] = a[j+1]; + a[j+1] = temp; + } + } + } +} \ No newline at end of file -- Gitee