Suppose I have a class
class People(){
String firstName;
String lastName;
int name;
public String getFirstName()
public void setFirstName(String firstName);
..
..
}
And i intend to obtain all the non Null attributes of an object that is an instance of this class
for instance
People people=new People();
people.setFirstName("george");
people.setLastName("May");
Array tempMap=someutilityClass(people);
someutilityClass would return an array of attributes that are not null, Any pointers on how to accomplish this