Java java.util List

Introduction

  1. Java List add all element from a collection
  2. Java List add and insert by ListIterator
  3. Java List add and insert by position
  4. Java List binary search
  5. Java List change custom object element
  6. Java List check if an element exists
  7. Java List check if List is not empty
  8. Java List compare for equality


  9. Java List convert to an array
  10. Java List convert to an array via Stream
  11. Java List convert to read-only List
  12. Java List convert to Set
  13. Java List count character frequency
  14. Java List create custom List class to store only unique values
  15. Java List create from of method
  16. Java List create with random value via Stream


  17. Java List fill specified object
  18. Java List fill value
  19. Java List filter empty element via Stream
  20. Java List filter odd value
  21. Java List filter, map and reduce to sum via Stream
  22. Java List get element
  23. Java List get element frequency
  24. Java List get elements with Iterator
  25. Java List get Max/Min/Sum/Avg by IntSummaryStatistics via Stream
  26. Java List get previous and next index using ListIterator
  27. Java List get sub list
  28. Java List get top element after sort() via Stream
  29. Java List insert all elements from other Collection by index
  30. Java List insert element by index returned from binary search
  31. Java List iterate through using while loop, iterator, and for each
  32. Java List iterate using Iterator
  33. Java List join to String via Stream
  34. Java List map elements to create new List via Stream
  35. Java List merge two element
  36. Java List remove custom object by object reference
  37. Java List remove duplicate elements
  38. Java List remove element by index
  39. Java List remove element by value
  40. Java List remove element using ListIterator
  41. Java List remove element using subList() method
  42. Java List remove elements from another List/Collection
  43. Java List remove item by omitting removed element from copying
  44. Java List replace element and return the relaced element
  45. Java List reverse elements
  46. Java List rotate element
  47. Java List search element for position index
  48. Java List shuffle
  49. Java List sort custom object on enum field
  50. Java List sort custom object on various attributes
  51. Java List sort List then search List
  52. Java List sort String value as date value
  53. Java List sort via Stream
  54. Java List sum the squares of all odd integers via Stream