Q:

Make a model for grouping multiple value in java

This is surely obvious but I'm stuck on it.
I want to have something like that
group1 {
name="boo";
gender="male";
}
...
groupN {
name="baa";
gender="female";
}

all the group have the same member.
and when i make function 
function(Group group) {
blabla = group.name;
bloblo = group.gender;
}

I know how to do it but it's not pretty at all , and I'm sure there is a way to do it cleanly 

A:

Java is not designed to be pretty or a functional language.  It is fairly likely that the simplest way/most natural way to do what you want is to use a plain loop without a "function"
Perhaps if you can be more specific we can help you more specifically.

