import java
*;import java
*;class Room { String ID; String tpye; int RN; Room() { this
RN = 6; } void show() { System
println("房间的编号:”+this
ID); System
println(”房间的类型:"+this
tpye); System
println(”房间的还能够容纳的学生数量:”+this
RN); }}class Student {String name;String ID;String gender;String RoomID;void show()//显示学生信息的方法{ System
println(”学生的学号:” + this
ID); System
println(”学生的姓名:" + this
name); System
println("学生的性别:” + this
gender); System
println(”学生的房间号:" + this
RoomID);}static void showallstudent(ArrayList allarraylist)//创建一个显示所有学生的信息的方法{for(int i = 0; i