Question: please I want solution in java8 programing Grouping items Write a function using Java 8 steams (along with unit test cases) that accepts a list


please I want solution in java8 programing
Grouping items Write a function using Java 8 steams (along with unit test cases) that accepts a list of strings. Each String provides the type and the name of the object, separated by a colon ".", for eg. String 1 => "fruit : apple" String 2 => "veggie : potato" String 3 => "fruit : banana" The output of the function should be a map, such that key is the type and value is the list of all obje 1.e. fruit: [apple; banana] veggie: potato]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
