File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed
src/test/java/com/github/streams/interview/problems/employee Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change 10
10
/// Calculation of the number of employees in each department.
11
11
///
12
12
/// ### Input:
13
- ///
14
- /// - Employee("John", "Sales", 50000)
15
- /// - Employee("Jane", "Marketing", 60000)
16
- /// - Employee("Bob", "Sales", 70000)
17
- ///
13
+ /// ```json
14
+ /// Employee("John", "Sales", 50000)
15
+ /// Employee("Jane", "Marketing", 60000)
16
+ /// Employee("Bob", "Sales", 70000)
17
+ /// ```
18
18
/// ### Output:
19
- /// - "Sales": 2,
20
- /// - "Marketing": 1
21
- ///
19
+ /// ```json
20
+ /// "Sales": 2,
21
+ /// "Marketing": 1
22
+ /// ```
22
23
/// #### Explanation:
23
24
/// This method takes a list of employees as input, groups them by their department
24
25
/// names, and returns a map where the keys are the department names and the values are the number
You can’t perform that action at this time.
0 commit comments