上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 65 下一页
摘要: package com.fqs.test; import java.util.Random; public class hello { public static void main(String[] args) { //定义方法 实现随机产生一个5位的验证码 //验证码格式 长度5 // 前四位是 阅读全文
posted @ 2023-06-08 20:11 胖豆芽 阅读(11) 评论(0) 推荐(0) 编辑
摘要: package com.fqs.test; public class hello { public static void main(String[] args) { //卖飞机票 //机票的价格按照第一 淡11月到4月、旺季5月到10月; // 第二 头等舱 旺季 9折、经济舱旺季 8.5折收费 阅读全文
posted @ 2023-06-08 14:33 胖豆芽 阅读(16) 评论(0) 推荐(0) 编辑
摘要: package com.fqs.test; public class hello { public static void main(String[] args) { //需求:设计一个方法用于数组遍历 每次可以写100个数组,将数组打印出来; 要求遍历的结果是在一行上的。例如:[11,22,33, 阅读全文
posted @ 2023-06-08 11:22 胖豆芽 阅读(7) 评论(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 胖豆芽 阅读(16) 评论(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 胖豆芽 阅读(8) 评论(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 胖豆芽 阅读(10) 评论(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 胖豆芽 阅读(15) 评论(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 胖豆芽 阅读(23) 评论(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 胖豆芽 阅读(1) 评论(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 胖豆芽 阅读(26) 评论(0) 推荐(0) 编辑
上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 65 下一页