Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Algorithms - transformation

// give back only names
public List<String> getNames(List<Employee> employees) {
    List<String> names = new ArrayList<>();
    for (Employee employee: employees) {
        names.add(employee.getName());
    }
    return names;
}
Source by github.com #
 
PREVIOUS NEXT
Tagged: #Algorithms #transformation
ADD COMMENT
Topic
Name
4+2 =