- 博客(4)
- 收藏
- 关注
原创 集合小练习
System.out.println("----------------退出------------");System.out.println("已将新生"+student.getName()+"添加成功");System.out.println("学生的人数是"+arrayList.size());System.out.println("----------系统功能如下------------");arrayList.add(new Student("炸毛",18,"202236209"));
2025-07-13 13:29:12
277
原创 集合小练习
System.out.println("---------------欢迎来到点歌系统---------------");System.out.println("-----------退出-----------");System.out.println("歌曲列表不存在"+s2+"无法置顶一位");System.out.println("歌曲列表不存在"+s1+"无法置顶");System.out.println("已将歌曲"+s1+"置顶");System.out.println("你以退出系统");
2025-07-13 00:45:41
320
原创 集合常用方法
if (index < 0 || index >= size) throw new IndexOutOfBoundsException("数组越界了");if (index < 0 || index >= size) throw new IndexOutOfBoundsException("数组越界了");// * @param str 指定的元素。// * 获取指定索引处的元素。// 判断是否包含指定的元素。// 获取指定元素首次出现的索引。//删除指定索引处的元素。
2025-07-07 19:46:25
446
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅