Soyuliasoyulia.hashnode.dev·Jan 19, 2025[ Java ] Stream Api의 map vs flatMap목표 : 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...stream Api
Rojesh Shresthathenewbie.hashnode.dev·Jan 12, 2024Mastering JavaScript Array: Discussion on methods of arrayArray is a fundamental data structure used to store data of the same datatype under the same variable name. But JavaScript allows more flexibility compared to some other languages. Example of an array with different data types in JavaScript: const mi...flatMap