Skip to content

toderesa97/TradersAndTransactions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

TradersAndTransactions

Putting into practise Stream API and Lambda Expressions

Source: Java 8 in Action Lambdas, streams, and functional-style programming, Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft

** Excersice : **

  1. Find all transactions in the year 2011 and sort them by value (small to high).

  2. What are all the unique cities where the traders work?

  3. Find all traders from Cambridge and sort them by name.

  4. Return a string of all traders’ names sorted alphabetically.

  5. Are any traders based in Milan?

  6. Print all transactions’ values from the traders living in Cambridge.

  7. What’s the highest value of all the transactions?

  8. Find the transaction with the smallest value.

** Note: Classes Trader and Transaction can be found on src file **

About

Putting into practise Stream API and Lambda Expressions

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages