HeadlessCow
Ars Tribunus Militum
A HashMap should work. Hash on the String containing the name and store the age as an Integer. For setNameAndAge use put() to add the data to the collection. For getAge use keySet to grab the set of all keys used and then loop through that set and use get to retrieve the age associated with that name.