I am trying to solve little easy exercises with streams and I was wondering which way is the most efficient way to get a stream out of an Person[] but taking every second object.
Person[] myarr = {person1, person2, person3, person4, person5};
The output stream should consist of the objects person1, person3, person5 Any good efficient ideas?