Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java obtain list string from list object

List<String> ids = 
  foos.stream().map(foo -> foo.getId()).collect(Collectors.toList());
 
PREVIOUS NEXT
Tagged: #java #obtain #list #string #list #object
ADD COMMENT
Topic
Name
9+7 =