摘要: public class zhaosushu { public static void main(String[] args) { System.out.println("当前素数的个数为"+sushu(101, 200)); // 题目:找101-200的素数的个数 } public static 阅读全文
posted @ 2023-11-25 22:43 努力橙 阅读(20) 评论(0) 推荐(0)
摘要: import java.util.Random;import java.util.Scanner;public class HelloWorld { public static void main(String[] args) { int[] money = {9,666,188,520,99999 阅读全文
posted @ 2023-11-25 21:20 努力橙 阅读(41) 评论(0) 推荐(0)
摘要: public class HelloWorld { public static void main(String[] args) { //打印数组 [11,22,33] int[] arr = new int[]{11, 22, 33}; // arr = [0,0,0] int[] arr2 = 阅读全文
posted @ 2023-11-25 18:51 努力橙 阅读(16) 评论(0) 推荐(0)
摘要: public class kaobei { public static void main(String[] args) { int[] arr = {11,22,33}; int[] arr2 = copy(arr); copy1(arr2); } public static void copy1 阅读全文
posted @ 2023-11-25 17:06 努力橙 阅读(26) 评论(0) 推荐(0)
摘要: public class jiami { // 对密码进行加密操作。 比如 1983. public static void main(String[] args) { System.out.println(result(1983)); //结果为8346 } public static Strin 阅读全文
posted @ 2023-11-25 16:07 努力橙 阅读(53) 评论(0) 推荐(0)
摘要: import java.util.Scanner;public class dafen { public static void main(String[] args) { System.out.println("去掉最高分最低分后评委得分的平均分为:" + averagescore(6)); } 阅读全文
posted @ 2023-11-25 00:48 努力橙 阅读(78) 评论(0) 推荐(0)
摘要: import java.util.Random;public class yanzhengma { public static void main(String[] args) { System.out.println(aaa(5)); } public static String aaa(int 阅读全文
posted @ 2023-11-24 21:49 努力橙 阅读(18) 评论(0) 推荐(0)
摘要: import java.util.Random;import java.util.Scanner;public class suijipaiming { public static void main(String[] args) { int[] a =new int[6]; //1.创建6个动态数 阅读全文
posted @ 2023-11-21 21:37 努力橙 阅读(30) 评论(0) 推荐(0)
摘要: public class FanZhuan { public static void main(String[] args) { int[] a = {10, 20, 30, 40, 50, 60}; for (int i= 0,j=a.length-1; i <j ; i++,j--) { int 阅读全文
posted @ 2023-11-21 21:00 努力橙 阅读(18) 评论(0) 推荐(0)
摘要: import java.util.Scanner;public class PingWei { public static void main(String[] args) { //题目:定义动态数组,完成6个评委打分 double pingwei[] = new double[6]; //定义6个 阅读全文
posted @ 2023-11-20 18:01 努力橙 阅读(25) 评论(0) 推荐(0)