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