Data Structures — Chapter 16

Few important data structures from Java

  • ArrayList
  • TreeSet — Keeps the elements sorted and prevents duplicates.
  • HashMap — Let’s you store and access elements as name value pairs.
  • LinkedLis — Designed to give better performance when you insert or delete elements from the middle of the collection. (In practice, an ArrayList is still usually what you want)
  • HashSet — Prevents duplicates in the collection, and given an element, can find that element in the collection quickly.
  • LinkedHashMap — Like a regular HashMap, except it can remember the order in which elements (name/value pairs) were inserted, or it can be configured to remember the order in which elements were last accessed.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Upulie Handalage

Upulie Handalage

Everything in my point of view. Here for you to read on....