package lianxi; public class BubbleSort { public static void main(String[] args) { int[] array = {12,23,3,5,65,67,34,23,5,7,789,435,2,4}; //对数组冒泡排序 for(int i = 0;i < array.length - 1; i ++) { for(int j = 0;j < array.length - i - 1; j ++) { if (array…