In this blog post we’ll cover what is Java LinkedHashSet, when and how to use it. In addition to that we’ll also talk about how it is different from the HashSet. What is Java LinkedHashSet? Java LinkedHashSet is an implementation of a hash table and a […]
Tag: Collections
Java TreeSet: Explained With Examples
In this blog post you’ll read about what a Java TreeSet is and when to use it. Also, we’ll take a look at some examples that TreeSet in Java has to offer. It has quite a few different features from the HashSet. What is Java TreeSet? […]
Java LinkedHashMap and Its’ Difference From HashMap
In this blog post we’ll cover what is Java LinkedHashMap and when to use it. Also, we’ll talk about what is the difference between the LinkedHashMap and HashMap in Java. It would be better if you already know what a HashMap is before continuing to […]
Java TreeMap And Its’ Little-Known Features
What is Java TreeMap? Java TreeMap is a collection that implements from the NavigableMap interface. It has been available since JDK 1.2. In its’ essence TreeMap is an implementation of Red-Black tree. Red-Black tree is a self-balancing binary tree. TreeMap in Java stores key-value pairs. In […]
Java HashMap: 5 Questions and Answers You Should Know Of
1. What is Java HashMap? Java HashMap is a collection that implements from the Map interface. It has been around since JDK 1.2. HashMap is implemented on top of HashTable and therefore they both have a lot of similarities. HashMap in Java stores key-value pairs […]
Java HashSet: What It Is, When and How To Use It?
In this blog post we will first cover what is a Java HashSet, when to use a HashSet and show you how to use a HashSet in Java by providing several examples. You’ll also find answers to the following questions: Is HashSet ordered? Is HashSet synchronized? What […]
LinkedList in Java With Examples How to Use It
In this blog post we will first cover what is a LinkedList in Java, when to use a Java LinkedList and show you how to use a LinkedList by providing several examples. What is LinkedList in Java? Java LinkedList is a collection that implements from […]
ArrayList in Java With Examples How to Use It
In this blog post we will first cover what is an ArrayList in Java, when to use an ArrayList and show you how to use it. What is ArrayList in Java? Java ArrayList is a collection that implements from the List interface. It lets you […]