Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

make for on all variable in class in java

List<Field> fieldList = Arrays.asList(fields).stream().filter(field -> Modifier.isPublic(field.getModifiers())).collect(
    Collectors.toList());
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #variable #class #java
ADD COMMENT
Topic
Name
9+4 =