Skip to content

Latest commit

 

History

History
24 lines (13 loc) · 787 Bytes

README.md

File metadata and controls

24 lines (13 loc) · 787 Bytes

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 **