Challenge: Filtering Corporate Email Addresses
Aufgabe
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ösung
solution.java
War alles klar?
Danke für Ihr Feedback!
Abschnitt 1. Kapitel 5
single
Fragen Sie AI
Fragen Sie AI
Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen
Awesome!
Completion rate improved to 2.33
Challenge: Filtering Corporate Email Addresses
Swipe um das Menü anzuzeigen
Aufgabe
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ösung
solution.java
War alles klar?
Danke für Ihr Feedback!
Abschnitt 1. Kapitel 5
single