上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 23 下一页
摘要: 面向对象三大特征之一。 子类有父类属性和方法,也可在子类重新定义,追加属性和方法。 public class Zi extends Fu{} 父类别名:基类、超类 子类别名:派生类 继承中子类特点: 子类可以有父类的内容 子类可以有自己特有的内容 阅读全文
posted @ 2022-01-20 10:27 大灰狼21 阅读(19) 评论(0) 推荐(0)
摘要: public static void addStudent(ArrayList<Student> array) { Scanner sc = new Scanner(System.in); String sid; while (true) { System.out.println("请输入学生学号: 阅读全文
posted @ 2022-01-19 10:27 大灰狼21 阅读(282) 评论(0) 推荐(0)
摘要: public static void updateStudent(ArrayList<Student> array) { Scanner sc = new Scanner(System.in); System.out.println("请输入你要修改的学生的学号:"); String sid = s 阅读全文
posted @ 2022-01-19 10:09 大灰狼21 阅读(113) 评论(0) 推荐(0)
摘要: public static void deleteStudent(ArrayList<Student> array) { Scanner sc = new Scanner(System.in); System.out.println("请输入你要删除的学生的学号:"); String sid = s 阅读全文
posted @ 2022-01-19 10:00 大灰狼21 阅读(45) 评论(0) 推荐(0)
摘要: public static void updateStudent(ArrayList<Student> array) { Scanner sc = new Scanner(System.in); System.out.println("请输入你要修改的学生的学号:"); String sid = s 阅读全文
posted @ 2022-01-19 09:46 大灰狼21 阅读(164) 评论(0) 推荐(0)
摘要: public static void deleteStudent(ArrayList<Student> array) { Scanner sc = new Scanner(System.in); System.out.println("请输入你要删除的学生的学号:"); String sid = s 阅读全文
posted @ 2022-01-19 09:31 大灰狼21 阅读(125) 评论(0) 推荐(0)
摘要: public static void findAllStudent(ArrayList<Student> array) { if (array.size() == 0) { System.out.println("无信息,请先添加信息再查询"); return; } System.out.print 阅读全文
posted @ 2022-01-19 09:19 大灰狼21 阅读(30) 评论(0) 推荐(0)
摘要: \t是TAB键的意思 public static void findAllStudent(ArrayList<Student> array) { System.out.println("学号\t\t\t姓名\t\t年龄\t\t居住地"); for (int i = 0; i < array.size 阅读全文
posted @ 2022-01-19 09:10 大灰狼21 阅读(83) 评论(0) 推荐(0)
摘要: public static void addStudent(ArrayList<Student> array) { Scanner sc = new Scanner(System.in); System.out.println("请输入学生学号:"); String sid = sc.nextLin 阅读全文
posted @ 2022-01-19 08:37 大灰狼21 阅读(348) 评论(0) 推荐(0)
摘要: while (true) { System.out.println(" 欢迎来到学生管理系统 "); System.out.println("1 添加学生"); System.out.println("2 删除学生"); System.out.println("3 修改学生"); System.ou 阅读全文
posted @ 2022-01-19 08:11 大灰狼21 阅读(76) 评论(0) 推荐(0)
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 23 下一页