I want to take certain element from a collection to create another one.
Example I have a list created from this object
Student (Id, Code, FirstName, LastName, Age, Birthday)`
and I want to create a new collection from my first one that contains certain fields example
NewStudent(FirstName, LastName, Age)
I tried using map
, filter
but I can't get the result right.