Java ArrayList

Hi

I have a question. Does anyone know how to retrieve an element from an object that has been put into an ArrayList?

I can create an object say Person with get and set values for name (String) and age (Int)

Then add the object to array list

ArrayList people = new ArrayList();
Person person = new Person(“Karen”, 25);
people.add(person);

… but how to I get and print out just the age from the ArrayList (or if I were to create and add multiple People person to the list?