I wanna implement a javascript like method in java , is this possible ?
Say , I have a Person class :
public class Person { private String name ; priva
Look at the google collections library. Look at the transform methods on Iterators and Iterables. That should be able to get you what you want.