今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
Challenge: Advanced collection problems
(upbeat music) - [Instructor] We're going to do a back-to-back challenge, so you get more experience working with collections. In this challenge, the Landen Hotel has provided three additional methods on the room service class for you to implement. Like last time, they've provided a unit test for you to check your work. And within the body of each method, they've included the instructions for exactly what the method needs to do. The first method, hasRoom, will check if the room provided to this method as an argument, is found within our collection inventory. If it is, it'll return the boolean true. If it's not, it will return the boolean false. The next method, asArray, is going to return an array that contains all of the rooms found in our inventory collection in the order they were added. That last part about order is really important, and you'll want to keep that in mind while you're working on your solution.…
内容
-
-
-
-
Interfaces6 分钟 58 秒
-
(已锁定)
Collection types2 分钟 52 秒
-
(已锁定)
The Collection interface2 分钟 4 秒
-
Collection methods4 分钟 24 秒
-
(已锁定)
Creating a collection5 分钟 4 秒
-
(已锁定)
Generic typing4 分钟 26 秒
-
(已锁定)
Object comparison2 分钟 19 秒
-
(已锁定)
The equals method6 分钟 40 秒
-
(已锁定)
Challenge: Adding and removing collection elements5 分钟 6 秒
-
(已锁定)
Challenge: Advanced collection problems6 分钟 48 秒
-
-
-
-
-
-
-
-