Java Reference
In-Depth Information
logger.info("Somebody just booked seat
number "+seatId);
}
public int findSeat() {
ArrayList<Seat> list =
theatreBox.getSeatList();
for (Seat s: list) {
if (!s.isBooked()) {
return s.getId()-1;
}
}
return -1;
}
}
Running the application
With all libraries in place, you can now test run your new rich application. As you can
see, every 30 seconds a ticket is sold out and buttons are turned, in real time, into
Not available :
Search WWH ::




Custom Search