I know this is a simpler question.
But is it possible to convert given list of objects List<Person> and convert it into Vector<PersonName> using Java Streams API
public class Person {
String name;
String lastName;
int age;
float salary;
}
public class PersonName {
String name;
String lastName;
}
new Vector<>(list)Persons andPersonNames.