Website Home
HOME
Index
Collection How to
Collection How to
Array
Comparable
Comparator
Enum Map Set
Iterator
List
Map
Properties
Queue
Set
Java Collection How to - Java Set Example
« Previous
Java Add elements to a set which maintains the insertion order
Java Add objects to Binary Search tree using custom comparator
Java Add value to a sorted set
Java Assign 52 cards randomly equally among 4 players
Java Check for Existence for a single value or a subset
Java Compare elements in list and remove if some properties are the same
Java Count the occurences of each character in a String with Hashmap
Java Create a Set based on hash value
Java Create Enumeration from set
Java Create final HashMap that should not allow to update or remove element
Java Create iterator that does not support remove()
Java Create java.util.Set implementation without using element.hashCode()
Java Get Differences Between Two Integer Collection
Java Get duplicates from an array by checking the frequency
Java Get duplicates from an array in efficient way
Java Get Iterator for a Set
Java Initialize HashMap with lambda expressions
Java Iterate through a list in reverse order
Java Keep List index fixed while removing data
Java Parallelize search in a Java set
Java Remove all the elements from one Set to another
Java Union, Intersect and Differ, check sub set
TreeSet
Java Add Comparable objects to a TreeSet(Sorted Set)
Java Create a TreeSet(Sorted Set) with custom Comparator
Java Create TreeSet(Sorted Set) with reversed order comparator
Java Get Head Set from TreeSet(Sorted Set)
Java Get lowest and highest value stored in TreeSet
Java Get Sub Set from TreeSet
Java Get Tail Set from TreeSet
Java Get the values from a TreeSet(sorted set)
Java Implement generic Comparable for TreeSet for sorting
Java Store string objects in treeset in descending order
Compare
Java Compare two objects in custom tree set implementation
Java Compare two sets
Convert
Java Convert Array to a Set
Java Convert a List to a Set
Java Convert HashSet to Enumeration
Java Convert Set into List
Java Convert set to an Array
Java Convert Set to Enumeration
Java Convert Set to Synchronized Set
Search
Java Find maximum/Minimum element of Set
Java Find out how many elements are in a set, check if a set is empty
Java Find the duplicate values in two Arrays
« Previous