摘要: package cn.lijun.demo6; public class Text4 { public static void main(String[] args) { int[] arr={12,34,45,33,66,88,99}; reverse(arr); printArray(arr); } privat... 阅读全文
posted @ 2019-03-13 19:25 芯-觞 阅读(110) 评论(0) 推荐(0) 编辑
摘要: package cn.lijun.demo6; public class Test3 { public static void main(String[] args) { for(int j=1;j<10;j++){ for(int i=1;i<=j;i++){ System.out.print(j+"*"+i+... 阅读全文
posted @ 2019-03-13 19:24 芯-觞 阅读(263) 评论(0) 推荐(0) 编辑
摘要: package cn.lijun.demo6; public class Test2 { public static void main(String[] args) { for(int i=100;i<1000;i++){ int bai=i/100%10; int shi=i/10%10; in... 阅读全文
posted @ 2019-03-13 19:14 芯-觞 阅读(539) 评论(0) 推荐(0) 编辑
摘要: package cn.lijun.demo6; public class Text { public static void main(String[] args) { int[] arr={12,69,852,25,89,588}; selectS(arr); //比较 printS(arr); //遍历 ... 阅读全文
posted @ 2019-03-13 18:50 芯-觞 阅读(124) 评论(0) 推荐(0) 编辑
摘要: package cn.lijun.demo5; //冒泡排序 public class Text5 { public static void main(String[] args) { int[] arr={12,2,25,89,5}; bubbleStort(arr); printArray(arr); } publ... 阅读全文
posted @ 2019-03-13 16:56 芯-觞 阅读(88) 评论(0) 推荐(0) 编辑