Challenge: Filtering Corporate Email Addresses
Tâche
Swipe to start coding
You have a list of employee email addresses, and you need to keep only the corporate emails (those ending with @company.com
).
- Implement a
Predicate
to filter corporate emails that end with@company.com
. - Pass the correct parameters to the
filterEmails
method. - In the
filterEmails
method, iterate through all email addresses using afor-each
loop. - Apply the
Predicate
in theif
condition. - Add the matching emails to the new list
result
.
Solution
solution.java
Tout était clair ?
Merci pour vos commentaires !
Section 1. Chapitre 5
single
Demandez à l'IA
Demandez à l'IA
Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion
Awesome!
Completion rate improved to 2.33Awesome!
Completion rate improved to 2.33
Challenge: Filtering Corporate Email Addresses
Tâche
Swipe to start coding
You have a list of employee email addresses, and you need to keep only the corporate emails (those ending with @company.com
).
- Implement a
Predicate
to filter corporate emails that end with@company.com
. - Pass the correct parameters to the
filterEmails
method. - In the
filterEmails
method, iterate through all email addresses using afor-each
loop. - Apply the
Predicate
in theif
condition. - Add the matching emails to the new list
result
.
Solution
solution.java
Tout était clair ?
Merci pour vos commentaires !
Section 1. Chapitre 5
single
Awesome!
Completion rate improved to 2.33
Challenge: Filtering Corporate Email Addresses
Glissez pour afficher le menu
Tâche
Swipe to start coding
You have a list of employee email addresses, and you need to keep only the corporate emails (those ending with @company.com
).
- Implement a
Predicate
to filter corporate emails that end with@company.com
. - Pass the correct parameters to the
filterEmails
method. - In the
filterEmails
method, iterate through all email addresses using afor-each
loop. - Apply the
Predicate
in theif
condition. - Add the matching emails to the new list
result
.
Solution
solution.java
Tout était clair ?
Merci pour vos commentaires !