摘要: package com.Demo; import java.util.Scanner; //评委打分 //去除最高分和最低分求平均分 public class Test3 { public static void main(String[] args) { System.out.println("得 阅读全文
posted @ 2023-05-28 11:27 Karlshell 阅读(13) 评论(0) 推荐(0)
摘要: package com.Demo; import java.util.Random; //随机验证码 public class Test2 { public static void main(String[] args) { System.out.println(cali(5)); } public 阅读全文
posted @ 2023-05-28 11:26 Karlshell 阅读(15) 评论(0) 推荐(0)
摘要: package com.Demo; import java.util.Random; import java.util.Scanner; public class tEST1 { public static void main(String[] args) { //把数据拿到程序中来,用数组装起来 阅读全文
posted @ 2023-05-28 11:25 Karlshell 阅读(12) 评论(0) 推荐(0)
摘要: package com.ATMdemo; public class Test { public static void main(String[] args) { ATM atm=new ATM(); atm.start(); } } package com.ATMdemo; public clas 阅读全文
posted @ 2023-05-28 11:22 Karlshell 阅读(27) 评论(0) 推荐(0)
摘要: package com.constructor; public class Student { //无参数构造器 public Student(){ System.out.println("无参数"); } //有参数构造器 public Student(String name,double sco 阅读全文
posted @ 2023-05-28 11:18 Karlshell 阅读(12) 评论(0) 推荐(0)
摘要: package com.ArrayList; //菜品管理 public class Demo2 { public static void main(String[] args) { Demo22 manager=new Demo22(); manager.start(); } } package 阅读全文
posted @ 2023-05-28 11:15 Karlshell 阅读(30) 评论(0) 推荐(0)
摘要: package com.ArrayList; import java.util.ArrayList; public class Demo { public static void main(String[] args) { //1.创建一个ArrayList的集合对象 ArrayList<Strin 阅读全文
posted @ 2023-05-28 11:13 Karlshell 阅读(23) 评论(0) 推荐(0)
摘要: package com.ArrayList; import java.util.ArrayList; public class Demo1 { public static void main(String[] args) { //创建一个ArrayList集合对象 ArrayList<String> 阅读全文
posted @ 2023-05-28 11:12 Karlshell 阅读(31) 评论(0) 推荐(0)
摘要: package com.karl1; import java.util.Scanner; public class ArrayTest1 { public static void main(String[] args) { //评委打分 //定义动态初始化数组,储存6个评委的打分 double[] 阅读全文
posted @ 2023-05-28 11:09 Karlshell 阅读(19) 评论(0) 推荐(0)
摘要: package com.karl1; public class ArrayTest { public static void main(String[] args) { //对数组的元素求和 //定义一个数组 int[] money={16,26,36,6,100}; //定义一个变量用于累加求和 阅读全文
posted @ 2023-05-28 11:08 Karlshell 阅读(75) 评论(0) 推荐(0)