セクション 1. 章 14
single
Challenge: Filtering Users by Two Criteria
メニューを表示するにはスワイプしてください
タスク
スワイプしてコーディングを開始
Filter the users who are over 18 years old and have an "Active" status, then print them to the screen.
- Create a
BiPredicateto check ifageis greater than 18 andstatusis "Active". - Inside
forEach(), use theifstatement to evaluate the user based on theBiPredicate. - If the user satisfies the condition, print the user to the console.
解答
すべて明確でしたか?
フィードバックありがとうございます!
セクション 1. 章 14
single
AIに質問する
AIに質問する
何でも質問するか、提案された質問の1つを試してチャットを始めてください