This is a summary of exercises I thought-of/found for core concepts like streams etc.
For each subject, the questions can be found in this README file and there should be classes with the (question as a comment and the) solutions.
- Find the sum of all elements in a List using streams.
- Given a List of integers, write a program to find the maximum element using streams.
- Given a List of strings, write a program to count the number of strings that start with a specific character using streams.
- Convert a List of strings to uppercase using streams.
- Given a List of integers, write a program to filter out the even numbers using streams / Count the number of elements in a list that satisfy a specific condition using streams.
- Write a program to find the average of a List of floating-point numbers using streams.
- Given a List of strings, write a program to concatenate all the strings using streams.
- Write a program to remove duplicate elements from a List using streams.
- Given a List of objects, write a program to sort the objects based on a specific attribute using streams.
- Write a program to check if all elements in a List satisfy a given condition using streams.
**** Extra practice questions ****
- Given a List of integers, write a program to find the difference between the maximum and minimum elements using streams.
- Write a program to check if a List of strings contains at least one uppercase word using streams.
- Given a List of integers, write a program to filter out the prime numbers using streams.
- Write a program to check if a List of strings contains any duplicates using streams.
- Given a List of strings, write a program to count the total number of characters in all strings using streams.