title: Comparing two strings and count differences with Stream API
body: <p>Today I was trying to compare two strings with Stream API in java. 
  Let's assume that we have two Strings:</p>
  
  <pre><code>String str1 = "ABCDEFG"
  String str2 = "ABCDEEG"
  </code></pre>
  
  <p>We can make streams from it with: </p>
  
  <pre><code>str1.chars().stream()...
  str2.chars().stream()...
  </code></pre>
  
  <p>And now I want to compare these string, char by char and iterate some variable when char will be different on the same position, so the result in this case will be 1, because there is one difference in this.</p>
  
  <p>I was trying to do call map or forEach from first and there my journey ends, because I don't know how to get corresponding element form second stream.</p>