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

  • 8
  • 0
  • 约 7页
  • 2020-12-08 发布于广东
  • 举报
PAGE PAGE 1 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.siz

文档评论(0)

1亿VIP精品文档

相关文档