title: How can I filter elements of the list based on their index(position) using stream() in Java?
body: <p>How can I filter elements of the list based on their index(position) using stream() in Java?
  I want to filter every third element (i.e. indices 0, 3, 6, 9,... of a <code>List&lt;String&gt;</code>).</p>