Java Collections And Data Structures ( java.util package )


ArrayList

Add an element to specified index of Java ArrayList Example

Append all elements of other Collection to Java ArrayList Example

Copy all elements of Java ArrayList to an Object Array Example

Get Size of Java ArrayList and loop through elements Example

Get Sub List of Java ArrayList Example

Insert all elements of other Collection to Specified Index of Java ArrayList Example

Iterate through elements Java ArrayList using Iterator Example

Iterate through elements Java ArrayList using ListIterator Example

Remove all elements from Java ArrayList Example

Remove an element from specified index of Java ArrayList Example

Replace an element at specified index of Java ArrayList Example

Search an element of Java ArrayList Example

Simple Java ArrayList Example

Sort elements of Java ArrayList Example

Arrays

Compare Two Java boolean Arrays Example

Compare Two Java byte Arrays Example

Compare Two Java char Arrays Example

Compare Two Java double Arrays Example

Compare Two Java float Arrays Example

Compare Two Java int Arrays Example

Compare Two Java long Arrays Example

Compare Two Java short Arrays Example

Create List from Java Object Array Example

Collections

Copy Elements of ArrayList to Java Vector Example

Copy Elements of One Java ArrayList to Another Java ArrayList Example

Copy Elements of One Java Vector to Another Java Vector Example

Copy Elements of Vector to Java ArrayList Example

Create Java ArrayList From Enumeration Example

Create List containing n Copies of Specified Object Example

Find maxmimum element of Java ArrayList Example

Find maxmimum element of Java HashSet Example

Find maxmimum element of Java Vector Example

Find Minimum element of Java ArrayList Example

Find Minimum element of Java HashSet Example

Find Minimum element of Java Vector Example

Get Enumeration over Java ArrayList Example

Get Enumeration over Java HashSet Example

Get Enumeration over Java Vector Example

Get Synchronized List from Java ArrayList example

Get Synchronized Map from Java HashMap example

Get Synchronized Map from Java TreeMap example

Get Synchronized Set from Java HashSet example

Get Synchronized Set from Java TreeSet example

Perform Binary Search on Java ArrayList Example

Perform Binary Search on Java Vector Example

Replace All Elements Of Java ArrayList Example

Replace All Elements Of Java Vector Example

Replace all occurrences of specified element of Java ArrayList Example

Replace all occurrences of specified element of Java Vector Example

Reverse order of all elements of Java ArrayList Example

Reverse order of all elements of Java Vector Example

Shuffle elements of Java ArrayList example

Shuffle elements of Java Vector example

Swap elements of Java ArrayList example

Swap elements of Java Vector example

Comparator

Sort Java ArrayList in descending order using comparator example

Sort Java Vector in descending order using comparator example

Enumeration

Enumerate through a Vector using Java Enumeration Example

Hashmap

Check if a particular key exists in Java HashMap example

Check if a particular value exists in Java HashMap example

Get Set view of Keys from Java HashMap example

Get Size of Java HashMap Example

Iterate through the values of Java HashMap example

Remove all values from Java HashMap example

Remove value from Java HashMap example

Simple Java HashMap example

HashSet

Check if a particular element exists in Java HashSet Example

Copy all elements of Java HashSet to an Object Array Example

Get Size of Java HashSet Example

Iterate through elements of Java HashSet example

Remove all elements from Java HashSet example

Remove specified element from Java HashSet example

Simple Java HashSet example

Hashtable

Check if a particular key exists in Java Hashtable example

Check if a particular value exists in Java Hashtable example

Create Java Hashtable from HashMap example

Get Collection of Values from Java Hashtable example

Get Set view of Keys from Java Hashtable example

Get Size of Java Hashtable Example

Iterate through keys of Java Hashtable example

Iterate through values of Java Hashtable example

Remove all values from Java Hashtable example

Remove value from Java Hashtable example

Simple Java Hashtable example

Iterator

Iterate through a Collection using Java Iterator Example

Remove an element from Collection using Java Iterator Example

LinkedHashMap

Check if a particular key exists in Java LinkedHashMap example

Check if a particular value exists in Java LinkedHashMap example

Get Set view of Keys from Java LinkedHashMap example

Get Size of Java LinkedHashMap Example

Iterate through the values of Java LinkedHashMap example

Remove all values from Java LinkedHashMap example

Remove value from Java LinkedHashMap example

Simple Java LinkedHashMap example

LinkedHashSet

Check if a particular element exists in Java LinkedHashSet Example

Copy all elements of Java LinkedHashSet to an Object Array Example

Get Size of Java LinkedHashSet Example

Iterate through elements of Java LinkedHashSet example

Remove all elements from Java LinkedHashSet example

Remove specified element from Java LinkedHashSet example

Simple Java LinkedHashSet example

LinkedList

Add elements at beginning and end of LinkedList Java example

Check if a particular element exists in LinkedList Java example

Create an object array from elements of LinkedList Java example

Get elements from LinkedList Java example

Get first and last elements from LinkedList Java example

Get SubList from LinkedList Java example

Insert an Element into LinkedList Java example

Iterate through elements of Java LinkedList using Iterator example

Iterate through elements of Java LinkedList using ListIterator example

Remove all elements or clear LinkedList Java example

Remove first and last elements of LinkedList Java example

Remove range of elements from LinkedList Java example

Remove specified element from LinkedList Java example

Replace an Element of LinkedList Java example

Search elements of LinkedList Java example

Simple Java LinkedList example

ListIterator

Add or insert an element to ArrayList using Java ListIterator Example

Get Previous and next index using Java ListIterator Example

Remove an element from ArrayList using Java ListIterator Example

Replace an element from ArrayList using Java ListIterator Example

Traverse through ArrayList in forward direction using Java ListIterator Example

Traverse through ArrayList in reverse direction using Java ListIterator Example

Searching

Performing Binary Search on Java byte Array Example

Performing Binary Search on Java char Array Example

Performing Binary Search on Java double Array Example

Performing Binary Search on Java float Array Example

Performing Binary Search on Java int Array Example

Performing Binary Search on Java long Array Example

Performing Binary Search on Java short Array Example

Sorting

Java Sort byte Array Example

Java Sort char Array Example

Java Sort double Array Example

Java Sort float Array Example

Java Sort int Array Example

Java Sort long Array Example

Java Sort short Array Example

TreeMap

Check if a particular key exists in Java TreeMap example

Check if a particular value exists in Java TreeMap example

Get Head Map from Java TreeMap example

Get lowest and highest key stored in Java TreeMap example

Get Set view of Keys from Java TreeMap example

Get Size of Java TreeMap Example

Get Sub Map from Java TreeMap example

Get Tail Map from Java TreeMap example

Iterate through the values of Java TreeMap example

Remove all values from Java TreeMap example

Remove value from Java TreeMap example

Simple Java TreeMap example

TreeSet

Check if a particular value exists in Java TreeSet example

Copy all elements of Java TreeSet to an Object Array Example

Get Head Set from Java TreeSet example

Get lowest and highest value stored in Java TreeSet example

Get Size of Java TreeSet Example

Get Sub Set from Java TreeSet example

Get Tail Set from Java TreeSet example

Iterate through elements of Java TreeSet example

Remove all elements from Java TreeSet example

Remove specified element from Java TreeSet example

Simple Java TreeSet example

Vector

Add an element at specified index of Java Vector Example

Append all elements of other Collection to Java Vector Example

Copy all elements of Java Vector to an Object Array Example

Get Size of Java Vector and loop through the elements Example

Get Sub List of Java Vector Example

Insert all elements of other Collection to Specified Index of Java Vector Example

Iterate through elements Java Vector using Iterator Example

Iterate through elements Java Vector using ListIterator Example

Remove all elements from Java Vector Example

Remove an element from specified index of Java Vector Example

Remove specified element from Java Vector Example

Replace an element at specified index of Java Vector Example

Search an element of Java Vector Example

Search an element of Java Vector from specific index Example

Set size of Java Vector Example

Simple Java Vector Example

Sort elements of Java Vector Example