i mport ja v a、i o、*;i m p o rt j ava、u t i l、*;cl a ss R o o m { String I D; Stri ng t p y e; in t RN; Ro om() { this、RN = 6; } void s ho w() { ﻩ S y st e m、out、printl n("房间得编号:”+thi s、ID); ﻩ Syste m、out、pr i ntl n("房间得类型:”+t his、tp ye); Syst e m、o u t、print l n("房间得还能够容纳得学生数量:"+th i s、RN); }}class Student {ﻩS tring n am e;ﻩStr i n g ID;S t ring gender;String Ro o mI D;voi d sh o w()//显示学生信息得方法{ﻩ Sys tem、o ut、pri nt ln("学生得学号:” + this、I D);ﻩ Syste m、o ut、pri n tln(”学生得姓名:" + this、n ame); S ys tem、ou t、println("学生得性别:" + th i s、gender); System、out、printl n(”学生得房间号:” + t h is、RoomI D);}s tat i c voi d showallstude n t(A rra y List all a rray l ist)//创建一个显示所有学生得信息得方法ﻩ{ﻩf or(in t i = 0; i〈allarray l is t、size();i++){ﻩﻩ Sy s tem、o u t、prin t ln(); S yst e m、out、pri n tln("第" + (i + 1) + ”名学生:”