title: Java 8 sum or subtract depending on even odd
body: <p>Suppose I have a list of int </p>
  
  <pre><code>1,2,3,4,5,6,7,8,9,10
  </code></pre>
  
  <p>How can do add if the number is even and subtract if the number is odd?
  I can do this using a for loop but I want to know how I can do that using new Java 8 feature like <code>stream</code> and <code>filter</code> </p>