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
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
.
Løsning
solution.java
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
Awesome!
Completion rate improved to 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
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
.
Løsning
solution.java
Alt var klart?
Takk for tilbakemeldingene dine!
Awesome!
Completion rate improved to 2.33Seksjon 1. Kapittel 5
single