This commit is contained in:
xiangwbs
2018-04-22 10:52:26 +08:00
parent e8b5f3593e
commit 1f1ffa55eb
2 changed files with 2 additions and 1 deletions
@@ -19,6 +19,7 @@ public class CollectionDemo {
int[] arr1 = new int[4];
int[] arr2 = new int[]{1, 3, 5, 7};
int[] arr3 = {12, 3, 5, 6, 2, 8, 9, 4};
for (int i = 0; i < arr3.length - 1; i++) {//选择排序
for (int j = i + 1; j < arr3.length; j++) {
if (arr3[i] > arr3[j]) {
@@ -3,7 +3,7 @@ package com.xwbing.demo;
import java.io.*;
/**
* 创建日期: 2017年2月20日 上午10:12:20
* 创建日期: 2017年2月21日 上午10:12:20
* 作者: xiangwb
*/