I have to get a List of strings from a List of Objects, and I don't think looping through it is the best way.

**Explanation:**

With Person being:

```
public class Person{
    String name;
    String id;
}

```

I have a List of as parameter to a method

```
public List<String> getNames(ArrayList<Person> people){}

```

And I want the list of names in the list of people

what's the best way to do that without looping and adding to another List?