match list of strings to list of objects java code example
Example: java obtain list string from list object
List<String> ids =
foos.stream().map(foo -> foo.getId()).collect(Collectors.toList());
List<String> ids =
foos.stream().map(foo -> foo.getId()).collect(Collectors.toList());