https://github.com/deepcloudlabs/stream-api-exercises-part2
Stream API Exercises : Part II
https://github.com/deepcloudlabs/stream-api-exercises-part2
java java-8 java8-stream stream-api-exercises
Last synced: 8 months ago
JSON representation
Stream API Exercises : Part II
- Host: GitHub
- URL: https://github.com/deepcloudlabs/stream-api-exercises-part2
- Owner: deepcloudlabs
- License: mit
- Created: 2019-11-24T12:06:53.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-24T14:59:45.000Z (about 6 years ago)
- Last Synced: 2025-04-04T11:51:09.765Z (9 months ago)
- Topics: java, java-8, java8-stream, stream-api-exercises
- Language: Java
- Size: 7.81 KB
- Stars: 19
- Watchers: 1
- Forks: 28
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### Stream API Exercises : Part II
Stream API Exercises : Part II
`List animals= List.of(
new Spider(),
new Cat(),
new Fish("Free Willy"),
new Cat("Tekir"),
new Fish("Jaws"),
new Spider()
);`
**Q.1)** Take a list of wild animals
**Q.2)** Take a list of pets
**Q.3)** Find the animal with the highest number of legs
**Q.4)** Take a list of 100 random animals
**Q.5)** Find the total number of legs
**Q.6)** Group the animals by their number of legs
**Q.7)** Count the number of animals in each specie
**Q.8)** Count the number of species
**For Part I** : https://github.com/deepcloudlabs/stream-api-exercises-part1.git
**For Part III** : https://github.com/deepcloudlabs/stream-api-exercises-part3.git