title: How to get lines before and after matching from java 8 stream like grep?
body: <p>I have a text files that have a lot of string lines in there. If I want to find lines before and after a matching in grep, I will do like this:</p>
  
  <pre><code>grep -A 10 -B 10 "ABC" myfile.txt
  </code></pre>
  
  <p>How can I implements the equivalent in Java 8 using stream?</p>