Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 1.77 KB

README.md

File metadata and controls

30 lines (24 loc) · 1.77 KB

Java Core Katas

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.

Java Streams

  1. Find the sum of all elements in a List using streams.
  2. Given a List of integers, write a program to find the maximum element using streams.
  3. Given a List of strings, write a program to count the number of strings that start with a specific character using streams.
  4. Convert a List of strings to uppercase using streams.
  5. 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.
  6. Write a program to find the average of a List of floating-point numbers using streams.
  7. Given a List of strings, write a program to concatenate all the strings using streams.
  8. Write a program to remove duplicate elements from a List using streams.
  9. Given a List of objects, write a program to sort the objects based on a specific attribute using streams.
  10. Write a program to check if all elements in a List satisfy a given condition using streams.

**** Extra practice questions ****

  1. Given a List of integers, write a program to find the difference between the maximum and minimum elements using streams.
  2. Write a program to check if a List of strings contains at least one uppercase word using streams.
  3. Given a List of integers, write a program to filter out the prime numbers using streams.
  4. Write a program to check if a List of strings contains any duplicates using streams.
  5. Given a List of strings, write a program to count the total number of characters in all strings using streams.