摘要:
public class ArraysDemo02 { public static void main(String[] args) { int[][] a = new int[11][11]; a[1][2] = 1; a[2][3] = 2; for (int[] ints : a) { for 阅读全文
posted @ 2024-09-22 20:12
jyp2241109
阅读(12)
评论(0)
推荐(0)
摘要:
public class ArraysDemo01 { public static void main(String[] args) { //冒泡排序 //比较数组中,两个相邻的元素,如果第一个比第二个数大,调换位置 //每一次比较,都会产生一个最大或者最小的数 //下一轮可以少一次排序 int a 阅读全文
posted @ 2024-09-22 18:47
jyp2241109
阅读(18)
评论(0)
推荐(0)

浙公网安备 33010602011771号