string list with object in 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());