示例#1
0
 public void takeVisitors() throws InterruptedException {
   if (permitPeople() == true) // ���� ���� ��������
   {
     int count = visitors.countVisitorsToMuseum;
     while (visitors.getCountVisitorsToMuseum() != 0) {
       people_in_museum++;
       visitors.countVisitorsToMuseum--;
     }
     System.out.println("Через EAST зашло - " + count + " людей");
     System.out.println("Всего в музеей людей - " + people_in_museum);
   }
 }
示例#2
0
 @Override
 public String toString() {
   return Visitors.readable(this);
 }
 public void sell(Visitors v) {
   System.out.println("Sell soverign to " + v.getName());
 }