摘要: class ForDemo4{ //九九乘法表 public static void main(String[] args) { for(int i =1; i <= 9; i++){ for (int j = 1; j<=i; j++){ System.out.print(j+"*"+i+"="+ 阅读全文
posted @ 2021-11-24 20:51 漆左闲樵 阅读(43) 评论(0) 推荐(0)
摘要: public class sanjiaoxing { //打印三角形 public static void main(String[] args) { for (int i = 0; i <= 5; i++) { for(int j = 5;j>=i;j--){ System.out.print(" 阅读全文
posted @ 2021-11-24 20:50 漆左闲樵 阅读(20) 评论(0) 推荐(0)
摘要: public class MaoPaoDemo { public static void main(String[] args) { int [] num = {2,3,10,9,7}; int temp = 0; /* 冒泡排序 */ for(int i = 0; i < num.length; 阅读全文
posted @ 2021-11-24 20:48 漆左闲樵 阅读(35) 评论(0) 推荐(0)
摘要: import java.util.*;import java.util.stream.Collectors;public class QuChong { public static void main(String[] args) { List<Integer> list = new ArrayLi 阅读全文
posted @ 2021-11-24 20:45 漆左闲樵 阅读(50) 评论(0) 推荐(0)