05 2023 档案

摘要:1、 给定一个有9个整数(1,6,2,3,9,4,5,7,8)的数组,先排序,然后输出排序后的数组的值。 2、package yjwj; 3、 4、import java.util.Arrays; 5、 6、public class text1 { 7、 8、 public static void 阅读全文
posted @ 2023-05-08 19:36 计算机2107赵瑞 阅读(43) 评论(0) 推荐(0)
摘要:1.编写一个简单程序,要求数组长度为5,静态赋值10,20,30,40,50,在控制台输出该数组的值 2.package fkx; 3. 4.public class text1 { 5. 6. public static void main(String[] args) { 7. // TODO 阅读全文
posted @ 2023-05-08 19:24 计算机2107赵瑞 阅读(45) 评论(0) 推荐(0)
摘要:使用for循环计算1-100的和,除了以3结尾的那些数 package text; public class aaa { public static void main(String[] args) { // TODO Auto-generated method stub int i,sum=0; 阅读全文
posted @ 2023-05-08 19:00 计算机2107赵瑞 阅读(35) 评论(0) 推荐(0)