JAVA程序设计宿舍管理系统(完整版).pptxVIP

  • 6
  • 0
  • 约1.81千字
  • 约 7页
  • 2021-01-11 发布于未知
  • 举报
importjava.io.*; importjava.util.*; classRoom{ StringID; Stringtpye; intRN; Room() { this.RN=6; } voidshow() { System.out.println(房间的编号:+this.ID); System.out.println(房间的类型:+this.tpye); System.out.println(房间的还能够容纳的学生数量:+this.RN); } } classStudent{ Stringname; StringID; Stringgender; StringRoomID; voidshow()//显示学生信息的方法 { System.out.println(学生的学号:+this.ID); System.out.println(学生的姓名:+); System.out.println(学生的性别:+this.gender); System.out.println(学生的房间号:+this.RoomID); } staticvoidshowallstudent(ArrayListallarraylist)//创建一个显示所有学生的信息的方法 { for(inti=0;iallarraylist.size();i++) { System.out.println

文档评论(0)

1亿VIP精品文档

相关文档