Challenge: Filtering Users by Two Criteria
Завдання
Swipe to start coding
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.
Рішення
solution.java
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 1. Розділ 14
single
Запитати АІ
Запитати АІ
Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат
Awesome!
Completion rate improved to 2.33
Challenge: Filtering Users by Two Criteria
Свайпніть щоб показати меню
Завдання
Swipe to start coding
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.
Рішення
solution.java
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 1. Розділ 14
single