You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given a string employeeId a map of string to string employeeIdToEmail that contains employee IDs as keys and the employee's email address as the value, return the email associated with the passed employeeId. If the employee ID is not found, return 'info@apexsandbox.io'.
For example, if the map employeeIdToEmail contains the following keys and values:
'6752' -> 'cooper@corporation.com'
'19228' -> 'umair@universalcontainers.com'
'4823' -> 'alicia@acmeenterprises.com'
The method call employeeEmail(employeeIdToEmail, '4823') should return 'alicia@acmeenterprises.com'.
*/
public String employeeEmail(Map<String, String> employeeIdToEmail, String employeeId) {