Compute sum of salaries of employee

suggest change
// Java:
int total = employees.stream()
                      .collect(Collectors.summingInt(Employee::getSalary)));
// Kotlin:
val total = employees.sumBy { it.salary }

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents