Checkstyle Fixes
This commit is contained in:
		@@ -64,8 +64,7 @@ public class FunctionalProgramming {
 | 
			
		||||
   * Method to group cars by category using groupingBy
 | 
			
		||||
   * 
 | 
			
		||||
   * @param cars {@link List} of {@link Car} to be used for grouping
 | 
			
		||||
   * @return {@link Map} of {@link String} and {@link List} of {@link Car} with category
 | 
			
		||||
   * as key and cars belonging to that category as value
 | 
			
		||||
   * @return {@link Map} with category as key and cars belonging to that category as value
 | 
			
		||||
   */
 | 
			
		||||
  public static Map<String, List<Car>> getGroupingOfCarsByCategory(List<Car> cars) {
 | 
			
		||||
    return cars.stream().collect(Collectors.groupingBy(Car::getCategory));
 | 
			
		||||
 
 | 
			
		||||
@@ -84,8 +84,7 @@ public class ImperativeProgramming {
 | 
			
		||||
   * Method to group cars by category using for loops
 | 
			
		||||
   * 
 | 
			
		||||
   * @param cars {@link List} of {@link Car} to be used for grouping
 | 
			
		||||
   * @return {@link Map} of {@link String} and {@link List} of {@link Car} with 
 | 
			
		||||
   * category as key and cars belonging to that category as value
 | 
			
		||||
   * @return {@link Map} with category as key and cars belonging to that category as value
 | 
			
		||||
   */
 | 
			
		||||
  public static Map<String, List<Car>> getGroupingOfCarsByCategory(List<Car> cars) {
 | 
			
		||||
    Map<String, List<Car>> groupingByCategory = new HashMap<>();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user