摘要: 需求:请输出一个4行5列的星星(*)图案。 结果: ***** ***** ***** ***** public class XunHuanQianTao { public static void main(String[] args) { //外层控制行数 内层控制列数 for(int x=0;x 阅读全文
posted @ 2022-03-24 20:20 ztgzqn 阅读(155) 评论(0) 推荐(0)
摘要: 集合嵌套和遍历元素 package Day16; import java.util.ArrayList; public class LX15 { public static void main(String[] args) { //创建集合1 规定其类型为学生类型 ArrayList<Student 阅读全文
posted @ 2022-03-24 12:05 ztgzqn 阅读(200) 评论(0) 推荐(0)