---
title: "Comment by YMY Bimali on \"Stream in Java (with examples)\" | Hashnode"
description: "Great article Maddy. Thank you for your effort ♥️ I have this concern when it is said there can be one terminal operation and terminal operations cannot be chai"
url: "https://hashnode.com/posts/stream-in-java-with-examples/611bbc21888ca15f5d391f7e/comment/63b47127f50de375e168feee"
---

[Discussion](https://hashnode.com/posts/stream-in-java-with-examples/611bbc21888ca15f5d391f7e)

Comment [Stream in Java (with examples)](https://hashnode.com/posts/stream-in-java-with-examples/611bbc21888ca15f5d391f7e)

[YMY Bimali](https://hashnode.com/@LightFury)

[Jan 3, 2023](https://hashnode.com/posts/stream-in-java-with-examples/611bbc21888ca15f5d391f7e/comment/63b47127f50de375e168feee)

Great article Maddy. Thank you for your effort ♥️ I have this concern when it is said there can be one terminal operation and terminal operations cannot be chained. we can write something like this right? Isn’t this chaining collect and forEach which are both terminal operations. I don’t get that part 🤔 Stream1.map().collect().forEach()
