03 2023 档案

查找手机价格低于3000(返回集合类型)
摘要:package com.itheima.test; import java.util.ArrayList; public class Test8 { public static void main(String[] args) { ArrayList<Phone> list = new ArrayL 阅读全文

posted @ 2023-03-20 18:45 小王努力不秃头 编辑

存入三个用户对象,根据id查找用户信息1.存在则返回true 2.存在则返回该用户(索引)
摘要:package com.itheima.test; //创建个User类 public class User { private String id; private String username; private String password; public User() { } public 阅读全文

posted @ 2023-03-20 11:39 小王努力不秃头 编辑

键盘输入任意字符串,打乱里面的内容
摘要:1 package com.itheima.test; 2 3 import java.util.Random; 4 import java.util.Scanner; 5 6 public class Test3 { 7 public static void main(String[] args) 阅读全文

posted @ 2023-03-19 16:07 小王努力不秃头 编辑

abcde->bcdea
摘要:1 package com.itheima.test; 2 3 public class Test2Case1 { 4 public static void main(String[] args) { 5 /*给定两个字符串 6 A 旋转,将A最左边字符移动至最右边 7 abcde->bcdea 8 阅读全文

posted @ 2023-03-19 15:31 小王努力不秃头 编辑

罗马数字的两种写法
摘要:1 package com.itheima.stringdemo; 2 3 import java.util.Scanner; 4 5 public class StringDemo9 { 6 public static void main(String[] args) { 7 //转换罗马数字 8 阅读全文

posted @ 2023-03-19 12:23 小王努力不秃头 编辑

面向对象:添加删除和修改学生信息
摘要:package com.itheima.test7; public class Test { public static void main(String[] args) { //定义一个长度为三的数组 Student[] arr= new Student[3]; //添加数据 Student s1 阅读全文

posted @ 2023-03-19 10:38 小王努力不秃头 编辑

面向对象综合训练(文字格斗游戏)
摘要:GameTest.javapackage com.itheima.test2;public class GameTest { public static void main(String[] args) { //创建角色 Role r1 = new Role("小王",100,'女'); Role 阅读全文

posted @ 2023-03-17 22:06 小王努力不秃头 阅读(42) 评论(0) 推荐(0) 编辑

导航

点击右上角即可分享
微信分享提示