title: Is it possible return paginated result usin Stream API in Java?
body: <p>So, I have a <code>Stream</code> with some objects and I need to return paginated result from <code>Stream</code>. For example from 2nd to 4th elements.</p>
  
  <pre><code>Stream&lt;String&gt; strs = Stream.of("qwe", "asd", "zxc", "rty", "fgh", "vbn");
  </code></pre>
  
  <p>And return only from 2nd to 4th elements: <code>asd, zxc, rty</code>.</p>
  
  <p>Is it possible?</p>
  
  <p>Thanks!</p>