Skip to content

Latest commit

 

History

History
13 lines (12 loc) · 606 Bytes

File metadata and controls

13 lines (12 loc) · 606 Bytes

Java8-StreamAPI-programs

  1. Find the average of numbers given in the list.
  2. Find the even and odd numbers from the list.
  3. Find the second highest number from the list.
  4. Inside the list, square each element and then find the average of those squared elements.
  5. Find the minimum and maximum numbers from the list.
  6. Find the numbers that start with 2.
  7. Print the duplicates from the list.
  8. Skip the first 5 elements from the list.
  9. Sort the list in ascending and descending order.
  10. Find the sum of the first five integers from the list.
  11. Find the sum of all the elements in the list.