title: How to skip particular array index when using IntStream.filter in Java 8
body: <p>I am learning and new to Java 8 Stream API,</p>
  
  <p>I wanted to write a program to find even numbers in integer array using <code>IntStream</code>, so I came up with this solution,</p>
  
  <pre><code>int[] numbers = {1,2,3,4,5,6,7,8,9,10};
  
  IntStream.of(numbers).filter(i -&gt; i%2 == 0).forEach(System.out::println);
  </code></pre>
  
  <p>and this is working correctly for me.</p>
  
  <p>but how can I modify the <code>filter</code> to skip certain array indexes from being checked from <code>numbers</code> ?</p>
  
  <p>for example,</p>
  
  <p>if i want to skip <code>numbers[1]</code> from being checked if it even or not then what should i do ?</p>
  
  <p>because <code>i</code> in the filter are the values of the array elements not their indexes.</p>
  
  <p>is it possible to do so ?</p>