Challenge: Filtering Corporate Email Addresses
Uppgift
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
Predicateto filter corporate emails that end with@company.com. - Pass the correct parameters to the
filterEmailsmethod. - In the
filterEmailsmethod, iterate through all email addresses using afor-eachloop. - Apply the
Predicatein theifcondition. - Add the matching emails to the new list
result.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 1. Kapitel 5
single
Fråga AI
Fråga AI
Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal
Fantastiskt!
Completion betyg förbättrat till 2.33
Challenge: Filtering Corporate Email Addresses
Svep för att visa menyn
Uppgift
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
Predicateto filter corporate emails that end with@company.com. - Pass the correct parameters to the
filterEmailsmethod. - In the
filterEmailsmethod, iterate through all email addresses using afor-eachloop. - Apply the
Predicatein theifcondition. - Add the matching emails to the new list
result.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 1. Kapitel 5
single