上一页 1 ··· 46 47 48 49 50 51 52 53 54 ··· 80 下一页
摘要: package com.fqs.test; public class hello { public static void main(String[] args) { //需求:设计一个方法用于数组遍历 每次可以写100个数组,将数组打印出来; 要求遍历的结果是在一行上的。例如:[11,22,33, 阅读全文
posted @ 2023-06-08 11:22 胖豆芽 阅读(15) 评论(0) 推荐(0)
摘要: package com.fqs.test;public class hello { public static void main(String[] args) { //需求:求商场每个季度的营业额 获得整年的营业额 //求每个季度的营业额 int sum1=getSum(1,2,3,4); int 阅读全文
posted @ 2023-06-07 13:25 胖豆芽 阅读(28) 评论(0) 推荐(0)
摘要: package com.fqs.test; import java.util.Arrays; import java.util.Random; public class hello { public static void main(String[] args) { //调用方法 playGame( 阅读全文
posted @ 2023-06-07 11:57 胖豆芽 阅读(17) 评论(0) 推荐(0)
摘要: package com.fqs.test; import java.util.Arrays; public class hello { public static void main(String[] args) { //交换数组头尾交换 //交换前 12345 //交换后 54321 int [] 阅读全文
posted @ 2023-06-06 20:36 胖豆芽 阅读(20) 评论(0) 推荐(0)
摘要: package com.fqs.test; import java.util.Arrays; public class hello { public static void main(String[] args) { //动态初始化 数组 int []arr=new int[3]; for (int 阅读全文
posted @ 2023-06-06 19:26 胖豆芽 阅读(28) 评论(0) 推荐(0)
摘要: package com.fqs.test; public class hello { public static void main(String[] args) { //定义一个数组,存储12345 求和 int []arr={1,2,3,4,5}; int sum=0; for(int i=0; 阅读全文
posted @ 2023-06-06 18:59 胖豆芽 阅读(43) 评论(0) 推荐(0)
摘要: package com.fqs.test; import java.util.Arrays; import java.util.Random; import java.util.Scanner; public class hello { public static void main(String[ 阅读全文
posted @ 2023-06-06 18:41 胖豆芽 阅读(7) 评论(0) 推荐(0)
摘要: package com.fqs.test;import java.util.Random;import java.util.Scanner;public class hello { public static void main(String[] args) { //需求 程序自动生成一个1到100 阅读全文
posted @ 2023-06-06 18:04 胖豆芽 阅读(40) 评论(0) 推荐(0)
摘要: package com.fqs.test; import java.util.Random; import java.util.Scanner; public class hello { public static void main(String[] args) { //需求 程序自动生成一个1到 阅读全文
posted @ 2023-06-06 17:07 胖豆芽 阅读(22) 评论(0) 推荐(0)
摘要: package com.fqs.test; import java.util.Scanner; public class hello { public static void main(String[] args) { //循环中 逢7过 Scanner sc=new Scanner(System. 阅读全文
posted @ 2023-06-06 13:38 胖豆芽 阅读(18) 评论(0) 推荐(0)
上一页 1 ··· 46 47 48 49 50 51 52 53 54 ··· 80 下一页