Say I have an list of objects with two fields field1 and field2, both of String type.
field1
field2
How do I get a list of all field1 values wit
Neither java as a language nor JDK libraries do not do what you want yet. You can either use LambdaJ or wait for Java 8 that is expected to include lambda expressions.