I have a list of objects (City) that contains a lot of properties it's internal structure:
class City {
String id;
String name;
String parent_id;
double lat;
double lng;
String local;
}
how to get a list of names(Strings) from the same list of cities
List<City> cities
how to get List<String> names from cities