"# JavaBasics"
Basics Java , still in progress adding new functionality
- Java - version 12
- gson - version 2.8.4
- maven - version 3.6
download, compile and run
Map<String, Car> map =
cars.stream()
.collect(Collectors.groupingBy(c -> c.getModel()))
.entrySet()
.stream()
.collect(Collectors.toMap(
m -> m.getKey(),
m -> m.getValue().stream()
.sorted(Comparator.comparing(s -> s.getPrice(), Comparator.reverseOrder()))
.findFirst()
.orElseThrow(() -> new IllegalStateException(" CAN'T found ")
)));
To-do list:
- cleanCode - optimize code
- Junit
- Json
Project is: in_progress