Skip to content

Last changes: implement Java 12 with Switch Expressions | Json | Maven | Streams

Notifications You must be signed in to change notification settings

KarolSz001/JavaBasics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

"# JavaBasics"

Table of contents

General info

Basics Java , still in progress adding new functionality

Technologies

  • Java - version 12
  • gson - version 2.8.4
  • maven - version 3.6

Setup

download, compile and run

Code Examples

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 ")
                            )));

Features

To-do list:

  • cleanCode - optimize code
  • Junit
  • Json

Status

Project is: in_progress

About

Last changes: implement Java 12 with Switch Expressions | Json | Maven | Streams

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages