摘要: 1 package FushiExam; 2 import java.util.*; 3 public class Text_30 { 4 5 public static void main(String[] args) { 6 // 有一个已经排好序的数组。先输入一个数,要求按原来的规律将它插入到 阅读全文
posted @ 2020-03-17 09:51 Hey蜗牛 阅读(1223) 评论(0) 推荐(0) 编辑
摘要: 1 package FushiExam; 2 3 public class Text_29 { 4 5 public static void main(String[] args) { 6 // 求3*3矩阵对角线元素之和 7 int sum=0; 8 int[][] arr= {{1,2,3},{ 阅读全文
posted @ 2020-03-17 09:49 Hey蜗牛 阅读(962) 评论(0) 推荐(0) 编辑
摘要: 1 package FushiExam; 2 import java.util.*; 3 public class Text_28 { 4 5 public static void main(String[] args) { 6 // 对10个数进行排序(冒泡排序) 7 Scanner scan=n 阅读全文
posted @ 2020-03-17 09:48 Hey蜗牛 阅读(2359) 评论(0) 推荐(0) 编辑
摘要: 1 package FushiExam; 2 3 public class Text_27 { 4 5 public static void main(String[] args) { 6 // 求100以内的素数 7 System.out.println("输出100以内的素数:"); 8 for 阅读全文
posted @ 2020-03-17 09:45 Hey蜗牛 阅读(382) 评论(0) 推荐(0) 编辑
摘要: 1 package FushiExam; 2 import java.util.*; 3 public class Text_26 { 4 5 public static void main(String[] args) { 6 /* 7 * 请输入星期几的第一个字母来判断一下星期几, 8 * 第一 阅读全文
posted @ 2020-03-17 09:42 Hey蜗牛 阅读(630) 评论(0) 推荐(0) 编辑