04 2021 档案

摘要:编写一个简单程序,要求数组长度为5,静态赋值10,20,30,40,50,在控制台输出该数组的值。 package ass; public class bs { /** * @param args */ public static void main(String[] args) { // TODO 阅读全文
posted @ 2021-04-25 19:57 jth12 阅读(38) 评论(0) 推荐(0) 编辑
摘要:1. package ass; public class bs { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub int []a={10,20,30,4 阅读全文
posted @ 2021-04-17 20:27 jth12 阅读(85) 评论(0) 推荐(0) 编辑
摘要:1. package bbc; public class j1 { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub int sum=0; for (int 阅读全文
posted @ 2021-04-12 21:00 jth12 阅读(33) 评论(0) 推荐(0) 编辑
摘要:1. 分别使用for循环,while循环,do循环求1到100之间所有能被3整除的整数的和。(知识点:循环语句) package as; public class jt1 { /** * @param args */ public static void main(String[] args) { 阅读全文
posted @ 2021-04-05 14:05 jth12 阅读(53) 评论(0) 推荐(0) 编辑