mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-09-20 04:23:25 +00:00
docs: updates to several patterns
This commit is contained in:
1 parent
4652842c94
commit
584e949714
70 files changed
+347
-479
No files matched your search
@@ -49,7 +49,7 @@ public static List<String> getModelsAfter2000(List<Car> cars){
|
||||
|
||||
**Step 2: Grouping**
|
||||
|
||||
Next, we want to group the cars by their category. This is done using the `groupingBy()` collector.
|
||||
Next, we want to group the cars by their category. This is done using the `groupingBy` collector.
|
||||
|
||||
```java
|
||||
public static Map<Category, List<Car>> getGroupingOfCarsByCategory(List<Car> cars){
|
||||
|
||||
Reference in new issue
Block a user