Great video🎉 thank u so much but u missed flat map bro😢 and also please do video of handling stream for list of list of other objects ( collection inside another collection)
When I supposed to use toList () and ForEach method... You are doing one time with forEach and one time with toList() so I am confusing sir if use forEach then hashcode I am getting sir
simple trick to remember --> filter removes (most of the time) some of the elements based on its Predicate returned boolean value. So you get same or less number of elements after the filter. Where as map don't remove elements, instead it usually changes each element based on the Lamda function passed to the map.