Skip to main content
Browse topics

OOPS

Java Collection Programs

ArrayList, HashMap, HashSet, TreeMap, Queue and related collection APIs.

java collection programsLinked List Example in JavaThis class stores the elements in nodes that each have a pointer to the previous and next nodes in the list. A Java example with source code and sample output.java collection programsArraylist Example in JavaThe ArrayList class extends AbstractList and implements the List interface. A Java example with source code and sample output.java collection programsHashset Example in JavaA set can't have any duplicate elements in it. A Java example with source code and sample output.java collection programsClear an Arraylist Example in JavaAn ArrayList is a non-syncronized class. A Java example with source code and sample output.java collection programsReversing an Arraylist Example in JavaAn ArrayList is a non-syncronized class. A Java example with source code and sample output.java collection programsLinked Hashset Example in JavaHashSet uses a hash table. A Java example with source code and sample output.java collection programsHashmap Example in JavaA Hashmap is a Map data structure. A Java example with source code and sample output.java collection programsSet Value in Arraylist Example in JavaAn ArrayList is a non-syncronized class. A Java example with source code and sample output.java collection programsLinked Hashmap Example in JavaHashMap uses a hash table. A Java example with source code and sample output.java collection programsRemove Element from Arraylist Example in JavaAn ArrayList is a non-syncronized class. A Java example with source code and sample output.java collection programsIdentity Hashmap Example in JavaIdentity HashMap is a HashTable based implementation of Map Interface. A Java example with source code and sample output.java collection programsTreemap Example in JavaMaps are defined by the java.util.Map interface in Java. A Java example with source code and sample output.java collection programsTreeset Example in JavaTreeSet uses a red-black tree implemented by a java.util.TreeMap. A Java example with source code and sample output.java collection programsFinding Duplicates in Array using Treeset Example in JavaTreeSet uses a red-black tree implemented by a java.util.TreeMap. A Java example with source code and sample output.java collection programsHashtable Example in JavaA hash table is a data structure used to implement an associative array, a structure that can map keys to values. A Java example with source code and sample output.java collection programsEnumset Example in JavaEnumSet inherits AbstractSet and implements Set Interface. A Java example with source code and sample output.java collection programsEnum Map Example in JavaEnumMap is a specialized Map implementation for use with enum type keys. A Java example with source code and sample output.java collection programsWrapper Example in JavaWrapper in Java: a complete example program with source code and sample output, explained step by step.java collection programsUn Modifiable Wrapper Example in JavaUn Modifiable Wrapper explained in Java, with a complete example program, its sample output, and a clear code walkthrough.java collection programsIterator Interface Example in JavaA Java example program demonstrating Iterator Interface, complete with the source code and expected sample output.java collection programsSorted Map Interface Example in JavaSorted Map Interface defines a map that's sorted by the keys provided. A Java example with source code and sample output.java collection programsSorted Set Interface Example in JavaSorted Set Interface explained in Java, with a complete example program, its sample output, and a clear code walkthrough.streamsJava Stream API Example in JavaIntroduction to the Java Stream API with filter, map, sorted and collect operations on a list of integers and strings, with sample output.

Related topics

Search tutorials