stream intermediate operation in Java

<b>Intermediate stream operations</b>
Method | Meaning
----- | ----- 
filter()| Returns a Stream with elements that match a given expression
distinct() | Returns a stream with duplicate values removed (according to methods Object.equals, Object.hashCode) of the input stream.
limit()<br>skip() | Make a Stream smaller.
map() | Creates a one-to-one mapping from the elements in the stream to the elements of the next step in the stream.
flatMap() | Takes each element in the stream and makes any elements it contains top-level elements in a single stream.
sorted() | Returns a stream with the elements sorted.
peek() | Allows us to perform a stream operation without actually changing the stream.