Challenge: Filtering Corporate Email Addresses
Oppgave
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
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 1. Kapittel 5
single
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår
Fantastisk!
Completion rate forbedret til 2.33
Challenge: Filtering Corporate Email Addresses
Sveip for å vise menyen
Oppgave
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
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 1. Kapittel 5
single