| 1234567891011121314151617181920 | package org.jeecg.modules.demo.untils;public class text {    public static void main(String[] args) {        int[] Arr = {34, 53, 12, 32, 56, 17};        for (int i = 0; i < Arr.length - 1; i++) {            for (int j = 0; j <Arr.length-1-i ; j++) {                if(Arr[j]>Arr[j+1]){                    int tem=Arr[j];                    Arr[j]=Arr[j+1];                    Arr[j+1]=tem;                }            }        }        for (int i = 0; i <Arr.length ; i++) {            System.out.println(Arr[i]);        }    }}
 |