---
title: "Discussion on \"[ Java ] Stream Api의 map vs flatMap\" | Hashnode"
description: "Discussion on \"[ Java ] Stream Api의 map vs flatMap\". 목표 : Stream API의 map과 flatMap의 차이점과 각각의 활용 사례를 예시 코드와 함께 확인해보자.\n\n1️⃣StreamApi의 Map ?\n먼저 코드를 통해 확인하자.\n//Map\npublic class Main{\n    public static void main(String[] args) throws IOException{\n        BufferedReader br = new BufferedReader(new InputStrea..."
url: "https://hashnode.com/posts/java-stream-api-map-vs-flatmap/678cb6ac52cd885043724f62"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [\[ Java \] Stream Api의 map vs flatMap](https://soyulia.hashnode.dev/java-stream-api-map-vs-flatmap?utm_source=hashnode&utm_medium=feed)

목표 : Stream API의 map과 flatMap의 차이점과 각각의 활용 사례를 예시 코드와 함께 확인해보자. 1️⃣StreamApi의 Map ? 먼저 코드를 통해 확인하자. //Map public class Main{ public static void main(String\[\] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStrea...

Feb 1, 2025 · 1 min read · soyulia.hashnode.dev  
Updated Oct 4, 2025  
Read the article

-   [#stream-api](https://hashnode.com/tag/stream-api)
-   [#map](https://hashnode.com/tag/map)
-   [#flatmap](https://hashnode.com/tag/flatmap)

## Written by

[Soyulia](https://hashnode.com/@soyulia)

@soyulia

  
[View profile](https://hashnode.com/@soyulia)

\# Backend #Java #Spring

Nice to meet u :) Im Backend Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
