课程: Learning Java Collections

今天就学习课程吧!

今天就开通帐号,24,700 门业界名师课程任您挑!

ArrayList

ArrayList

- [Instructor] To help us work with the methods on a list I've added a new guest class to our application. This class is going to store information about the guests of the Landon hotel, so things like their first name and last name. You'll also notice a boolean, loyalty program member on this class. This boolean is used to indicate whether or not a guest is a member of the loyalty program, which can give them some perks. So for example, in a minute, we're going to talk about a check-in list. The list is used to keep track of guests as they arrive at the hotel. So we know the order in which they should be checked in. If a guest is a member of the loyalty program, they are automatically placed ahead of non loyalty program members on the check-in list, just one of the perks. Now, you'll also notice I've added a list of rooms to this class. This list is going to store the rooms that a guest prefers to stay in while at the…

内容