Académique Documents
Professionnel Documents
Culture Documents
0. Warm-up
a. Given a list of Strings, write a method that returns a list of all strings
that start with the letter 'a' (lower case) and have exactly 3 letters.
d. Print the first 10 powers of 3 which are greater than 1000 (hint: use
IntStream.iterate(), limit(), filter(), boxed()..)
Output should be like: 2187, 6561, ...
e. Print all the square numbers (of form n^2) between 1000 and 10000
(hint: use IntStream.range(), map(), boxed()..)
Output should be like: 1024, 1089, 1156, ....
3. Trader Transactions
Create 2 classes:
- Trader - with properties: name, city
- Transaction - with properties: year, value, trader