Java语言编写的员工信息管理系统
源代码在线查看: reserve.java
import java.util.Enumeration;
import java.util.Vector;
public class Reserve {
public ReserveGuest reserveGuest;
//已经登记的客房信息
public Vector roomList;
public Reserve() {
reserveGuest=new ReserveGuest();
roomList = new Vector();
}
public void printReservationInfo()
{
System.out.println("------------预定信息------------");
reserveGuest.printGuestInfo();
Room room=new Room();
for (Enumeration ee = this.roomList.elements(); ee.hasMoreElements() ;)
{
room=(Room)ee.nextElement();
room.printRoomInfo();
}
System.out.println("--------------------------------");
}
}