mirror of
https://github.com/Xevion/contest.git
synced 2025-12-06 13:14:39 -06:00
arraylist vector and similarities portions
This commit is contained in:
@@ -33,6 +33,9 @@ This page will be using [javaTpoint](https://www.javatpoint.com/collections-in-j
|
|||||||
- [HashSet Class](#hashset-class)
|
- [HashSet Class](#hashset-class)
|
||||||
- [LinkedHashSet Class](#linkedhashset-class)
|
- [LinkedHashSet Class](#linkedhashset-class)
|
||||||
- [TreeSet Class](#treeset-class)
|
- [TreeSet Class](#treeset-class)
|
||||||
|
- [Similarities and Differences](#similarities-and-differences)
|
||||||
|
- [ArrayList vs Vector](#arraylist-vs-vector)
|
||||||
|
- [HashSet vs TreeSet vs LinkedHashSet](#hashset-vs-treeset-vs-linkedhashset)
|
||||||
|
|
||||||
<!-- /TOC -->
|
<!-- /TOC -->
|
||||||
|
|
||||||
@@ -92,10 +95,22 @@ However, the real power comes from the next set of interfaces, and the special m
|
|||||||
|
|
||||||
### ArrayList Class
|
### ArrayList Class
|
||||||
|
|
||||||
|
ArrayList uses a dynamically sized array.
|
||||||
|
|
||||||
|
See [ArrayList vs Vector](#arraylist-vs-vector).
|
||||||
|
|
||||||
### LinkedList Class
|
### LinkedList Class
|
||||||
|
|
||||||
### Vector Class
|
### Vector Class
|
||||||
|
|
||||||
|
Vector uses a dynamically sized array to store the data elements, with a functionality most similar to the [ArrayList Class](#arraylist-class)
|
||||||
|
|
||||||
|
- Synchronized (Thead Safe, Multi-user Application)
|
||||||
|
|
||||||
|
- Uses [Iterator](#iterator-interface) or Enumeration interface for element traversal
|
||||||
|
|
||||||
|
See [ArrayList vs Vector](#arraylist-vs-vector).
|
||||||
|
|
||||||
### Stack Class
|
### Stack Class
|
||||||
|
|
||||||
### PriorityQueue Class
|
### PriorityQueue Class
|
||||||
@@ -107,3 +122,9 @@ However, the real power comes from the next set of interfaces, and the special m
|
|||||||
### LinkedHashSet Class
|
### LinkedHashSet Class
|
||||||
|
|
||||||
### TreeSet Class
|
### TreeSet Class
|
||||||
|
|
||||||
|
## Similarities and Differences
|
||||||
|
|
||||||
|
### ArrayList vs Vector
|
||||||
|
|
||||||
|
### HashSet vs TreeSet vs LinkedHashSet
|
||||||
Reference in New Issue
Block a user