Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

select class field from list java

import java.util.stream.Collectors;

List<String> field1List = entities.stream().map(urEntity -> urEntity.getField1()).collect(Collectors.toList());
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #select #class #field #list #java
ADD COMMENT
Topic
Name
9+4 =