Gang Of Coders
Home
About Us
Contact Us
All Collections Solutions on Gang of Coders
Total of 400 Collections Solutions
What are the differences between a HashMap and a Hashtable in Java?
Java
Collections
Hashmap
Hashtable
Convert dictionary to List<KeyValuePair>
C#
Generics
Collections
Why Java Collection Framework doesn't contain Tree and Graph
Java
Collections
Graph
Tree
What is difference between Collection.stream().forEach() and Collection.forEach()?
Java
Collections
Java 8
Java Stream
The correct way to return the only element from a set
Java
Collections
Set
Does JQuery support Dictionaries (key, value) collection?
Javascript
Jquery
Collections
Dictionary
Elegant way to search an PHP array using a user-defined function
Php
Collections
Functional Programming
Java: Hashset Vs TreeSet - when should I use over the other?
Java
Collections
How do I convert a Groovy String collection to a Java String Array?
Groovy
Collections
Map equality using Hamcrest
Java
Collections
Hamcrest
Why does using Collections.emptySet() with generics work in assignment but not as a method parameter?
Java
Generics
Collections
Type Inference
What does Collection.Contains() use to check for existing objects?
C#
Collections
Contains
Difference between IQueryable, ICollection, IList & IDictionary interface
C#
.Net
Performance
List
Collections
Why does Python not support record type? (i.e. mutable namedtuple)
Python
Collections
Namedtuple
Setting attributes on a collection - backbone js
Javascript
Collections
backbone.js
Java get last element of a collection
Java
Collections
Iterator
Immutable Scala Map implementation that preserves insertion order
Scala
Dictionary
Collections
Immutability
How do I get an IntStream from a List<Integer>?
Java
Collections
Java 8
Java Stream
Boxing
Why does java.util.Properties implement Map<Object,Object> and not Map<String,String>
Java
Generics
Collections
Best way to get value from Collection by index
Java
Collections
The opposite of Intersect()
C#
.Net
Collections
Intersect
How to sort a Collection<T>?
Java
Sorting
Collections
Print array without brackets and commas
Java
Android
Arrays
List
Collections
SortedSet<T> vs HashSet<T>
C#
.Net
Collections
Generics
Is there a typescript List<> and/or Map<> class/library?
Collections
Typescript
How to create Immutable List in java?
Java
Collections
Immutability
Getting object with max date property from list of objects Java 8
Java
Collections
Java 8
Should a HashSet be allowed to be added to itself in Java?
Java
Collections
Set
Hashset
Contract
Determine if collection is of type IEnumerable<T>
C#
.Net
Linq
Collections
Types
Is there java.util.concurrent equivalent for WeakHashMap?
Java
Collections
Guava
java.util.concurrent
Weakhashmap
Java collections maintaining insertion order
Java
Data Structures
Collections
Java HashSet vs HashMap
Java
Collections
How to customize the data-prototype attribute in Symfony 2 forms
Forms
Collections
Symfony
Simple way to find if two different lists contain exactly the same elements?
Java
Collections
How to clone ArrayList and also clone its contents?
Java
Collections
Clone
Deep Copy
Why do many Collection classes in Java extend the abstract class and implement the interface as well?
Java
Collections
Iterating through a Collection, avoiding ConcurrentModificationException when removing objects in a loop
Java
Collections
Iteration
Java: Enumeration from Set<String>
Java
Collections
Set
Enumeration
How to get a list of specific fields values from objects stored in a list?
Java
Collections
List.of() or Collections.emptyList()
Java
Collections
Java 9
linq question: querying nested collections
C#
.Net
Linq
Collections
Linq to-Xml
Subtracting two lists in Python
Python
List
Collections
filtering a list using LINQ
C#
Linq
Collections
Tags
Ienumerable
C# List - Removing items while looping / iterating
C#
.Net
List
Collections
Difference between Hashtable and Collections.synchronizedMap(HashMap)
Java
Collections
Synchronization
Hashmap
Hashtable
How does ConcurrentHashMap work internally?
Java
Collections
Concurrency
Hashmap
How do you cast a List of supertypes to a List of subtypes?
Java
List
Generics
Collections
Casting
Return multiple values from ES6 map() function
Collections
Ecmascript 6
Flatmap
Why are empty collections of different type equal?
Java
Collections
Testng
How to merge a collection of collections in Linq
Linq
Collections
Linq to-Objects
Initial capacity of collection types, e.g. Dictionary, List
C#
.Net
Memory Management
Collections
Object Initializers
Array to Collection: Optimized code
Java
Arrays
Collections
Remove elements from collection while iterating
Java
Collections
Iteration
.NET HashTable Vs Dictionary - Can the Dictionary be as fast?
C#
.Net
Collections
Dictionary
Hashtable
VBA collection: list of keys
Vba
Collections
Collection to Iterable
Java
Collections
Iterable
MVVM and collections of VMs
Wpf
Mvvm
Collections
Viewmodel
Compare Two Lists Via One Property Using LINQ
C#
Linq
List
Collections
What benefits does dictionary initializers add over collection initializers?
C#
Dictionary
Collections
C# 6.0
Collection Initializer
What is the use case for flatMap vs map in kotlin
Collections
Kotlin
Flatmap
Hibernate query.list() method is returning empty list instead of null value
Java
Hibernate
Collections
Nullpointerexception
Return Value
Notify ObservableCollection when Item changes
C#
Wpf
Collections
Observablecollection
Inotifypropertychanged
How to determine if a type is a type of collection?
C#
Collections
Types
Refactoring
Java int[] array to HashSet<Integer>
Java
Generics
Collections
Check for any element that exists in two collections
C#
Linq
Collections
How to check if collection contains items in given order using Hamcrest
Java
Collections
Hamcrest
Java 8 list processing - add elements conditionally
Java
Collections
Java 8
Java Stream
Converting 'ArrayList<String> to 'String[]' in Java
Java
Arrays
String
Arraylist
Collections
How can I initialise a static Map?
Java
Dictionary
Collections
Initialization
Idioms
Best practice to validate null and empty collection in Java
Java
Collections
Collections.emptyList() vs. new instance
Java
Collections
Empty List
How do I overload the square-bracket operator in C#?
C#
Collections
Operators
Operator Overloading
Iterating through a list in reverse order in java
Java
Collections
Does List<T> guarantee insertion order?
C#
.Net
Collections
How to randomize two ArrayLists in the same fashion?
Java
List
Collections
Arraylist
What is the best way to clone/deep copy a .NET generic Dictionary<string, T>?
C#
Generics
Collections
Clone
Dictionary returning a default value if the key does not exist
C#
Collections
Dictionary
Why doesn't java.util.Set have get(int index)?
Java
Data Structures
Collections
Set
Check a collection size with JSTL
Jsp
Collections
Jstl
How to get a reversed list view on a list in Java?
Java
List
Collections
Iterator
Reverse
Kotlin's List missing "add", "remove", Map missing "put", etc?
Collections
Kotlin
MongoDB Show all contents from all collections
Mongodb
Collections
Find
Convert JSON to Map
Java
Json
Parsing
Collections
Is there a way to get a collection of all the Models in your Rails app?
Ruby on-Rails
Activerecord
Collections
Model
How to sort an ArrayList in Java
Java
Sorting
Collections
Arraylist
How to count the number of occurrences of an element in a List
Java
Arraylist
Collections
Convert List<DerivedClass> to List<BaseClass>
C#
List
Inheritance
Collections
Covariance
Difference between <? super T> and <? extends T> in Java
Java
Generics
Collections
Google Guava vs. Apache Commons
Java
Collections
Apache Commons
Guava
Size-limited queue that holds last N elements in Java
Collections
Queue
Java
How can I sort a List alphabetically?
Java
List
Sorting
Collections
Alphabetical
Which is more efficient, a for-each loop, or an iterator?
Java
Collections
Foreach
Properly removing an Integer from a List<Integer>
Java
Collections
Overloading
How can I loop through a List<T> and grab each item?
C#
For Loop
Collections
Most concise way to convert a Set<T> to a List<T>
Java
List
Collections
Set
jdk1.6
Convert Enumeration to a Set/List
Java
Collections
Conventions
Efficiency of Java "Double Brace Initialization"?
Java
Performance
Collections
Initialization
What Java 8 Stream.collect equivalents are available in the standard Kotlin library?
Java
Kotlin
Collections
Java 8
Java Stream
Recreating a Dictionary from an IEnumerable<KeyValuePair<>>
C#
Collections
Dictionary
Ienumerable
Idictionary
Is there a common Java utility to break a list into batches?
Java
Collections
How can I convert int[] to Integer[] in Java?
Java
Arrays
Generics
Collections
Immutable vs Unmodifiable collection
Java
Collections
Immutability
Sort a list from another list IDs
C#
Linq
Sorting
Collections
How to sort Counter by value? - python
Python
Sorting
Collections
Counter
How do I efficiently iterate over each entry in a Java Map?
Java
Dictionary
Collections
Iteration
When to use LinkedList over ArrayList in Java?
Java
Arraylist
Collections
Linked List
Initialization of an ArrayList in one line
Java
Collections
Arraylist
Initialization
How to make a new List in Java
Java
List
Collections
How to initialize HashSet values by construction?
Java
Collections
Constructor
Initialization
Hashset
Case-INsensitive Dictionary with string key-type in C#
C#
Collections
Generic Collections
How can I initialize an ArrayList with all zeroes in Java?
Java
Collections
count vs length vs size in a collection
Collections
Naming Conventions
Terminology
Semantics
Difference between HashSet and HashMap?
Java
Collections
Hashmap
Hashset
Assert equals between 2 Lists in Junit
Java
Unit Testing
Collections
Junit
Is there a built-in method to compare collections?
C#
.Net
Collections
Select N random elements from a List<T> in C#
C#
Algorithm
Collections
Random
Element
What is the difference between Collection and List in Java?
Java
Collections
how to get the one entry from hashmap without iterating
Java
Collections
How to check if IEnumerable is null or empty?
C#
.Net
Linq
Collections
Ienumerable
Big-O summary for Java Collections Framework implementations?
Java
Collections
Big O
Should I return a Collection or a Stream?
Java
Collections
Java 8
Encapsulation
Java Stream
How to convert an Array to a Set in Java
Java
Collections
Arrays
Set
Comparing two collections for equality irrespective of the order of items in them
.Net
Collections
Comparison
Equality
Filtering collections in C#
C#
Collections
Filtering
How do I sort a Set to a List in Java?
Java
Sorting
Collections
Collection<T> versus List<T> what should you use on your interfaces?
C#
.Net
Collections
Code Analysis
How can I get a List from some class properties with Java 8 Stream?
Java
Collections
Java 8
Java Stream
Why is HashSet<Point> so much slower than HashSet<string>?
C#
.Net
Performance
Collections
Hashset
How to convert a Map to List in Java?
Java
List
Collections
Map
Is there a more elegant way of adding an item to a Dictionary<> safely?
C#
Collections
Dictionary
How to iterate over a TreeMap?
Java
Collections
Treemap
Best way to convert list to comma separated string in java
Java
String
List
Collections
Set
Creating a blocking Queue<T> in .NET?
C#
.Net
Multithreading
Collections
Queue
Sorted collection in Java
Java
Sorting
Collections
Printing HashMap In Java
Java
Collections
Accessing items in an collections.OrderedDict by index
Python
Collections
Dictionary
Python 3.x
Ordereddictionary
How to filter a Java Collection (based on predicate)?
Java
Collections
Filter
How can I turn a List of Lists into a List in Java 8?
Java
Collections
Java 8
Arrays.asList() vs Collections.singletonList()
Java
Collections
Change priorityQueue to max priorityqueue
Java
Collections
Priority Queue
Java 8: performance of Streams vs Collections
Java
Performance
Collections
Java 8
Java Stream
Thread-safe List<T> property
C#
Collections
Properties
Thread Safety
How can I generate a list or array of sequential integers in Java?
Java
Arrays
Collections
Guava
Apache Commons
How to copy a java.util.List into another java.util.List
Java
Collections
Copy
Why doesn't Java Map extend Collection?
Java
Oop
Collections
Java Map equivalent in C#
C#
Java
Generics
Collections
Why is a ConcurrentModificationException thrown and how to debug it
Java
Exception
Collections
Concurrentmodification
Easiest way to convert a List to a Set in Java
Java
Collections
How can I convert List<Integer> to int[] in Java?
Java
Arrays
Collections
Binding a list in @RequestParam
Java
Spring
Data Binding
Collections
Spring Mvc
Collections.emptyMap() vs new HashMap()
Java
Collections
What .NET collection provides the fastest search
C#
.Net
Search
Collections
Checking that a List is not empty in Hamcrest
Java
Collections
Junit
Hamcrest
What is a WeakHashMap and when to use it?
Java
Collections
Weakhashmap
How to convert Set to Array?
Javascript
Arrays
Collections
Syntax
Ecmascript Harmony
Why aren't Java Collections remove methods generic?
Java
Generics
Collections
Creating a constant Dictionary in C#
C#
.Net
Collections
Dictionary
Constants
IList vs IEnumerable for Collections on Entities
Collections
Ienumerable
Ilist
How to copy Java Collections list
Java
List
Collections
Copy
What is the difference between an ordered and a sorted collection?
Java
Collections
Ways to iterate over a list in Java
Java
Loops
Collections
Iteration
Convert an array of primitive longs into a List of Longs
Java
Arrays
Collections
Boxing
How can I create a Set of Sets in Python?
Python
Collections
Nested
Set
Best way to create an empty map in Java
Java
Dictionary
Collections
Hashmap
Are there strongly-typed collections in Objective-C?
Objective C
Generics
Data Structures
Collections
Strong Typing
Identify duplicates in a List
Java
Collections
Why there is no ConcurrentHashSet against ConcurrentHashMap
Java
Collections
Concurrency
Hashmap
Hashset
Which Java Collection should I use?
Java
Algorithm
Arraylist
Collections
Hashmap
Converting a List<int> to a comma separated string
C#
Collections
The easiest way to transform collection to array?
Java
Arrays
Collections
Transformation
Why can Java Collections not directly store Primitives types?
Java
Collections
Types
Primitive Types
What is the most efficient Java Collections library?
Java
Collections
Converting String array to java.util.List
Java
Arrays
Collections
How do I remove an array item in TypeScript?
Arrays
Typescript
Collections
ReadOnlyCollection or IEnumerable for exposing member collections?
C#
.Net
Collections
Ienumerable
Readonly Collection
How can I initialize a C# List in the same line I declare it. (IEnumerable string Collection Example)
C#
List
Collections
Initialization
Difference between Java Enumeration and Iterator
Java
Collections
Iterator
Enumeration
How to convert comma-separated String to List?
Java
String
Collections
Split
Difference between Arrays.asList(array) and new ArrayList<Integer>(Arrays.asList(array))
Java
List
Collections
Java: how to convert HashMap<String, Object> to array
Java
Arrays
Collections
Hashmap
AddRange to a Collection
C#
Collections
C# 3.0
Extension Methods
Does .asSet(...) exist in any API?
Java
Collections
Truncate a list to a given number of elements
Java
Collections
Returning 'IList' vs 'ICollection' vs 'Collection'
C#
.Net
Generics
Collections
How to sort a HashSet?
Java
Sorting
Collections
Set
Hashset
Android-java- How to sort a list of objects by a certain value within the object
Java
Android
Sorting
Collections
Comparator
Number of elements in a javascript object
Javascript
Collections
Javascript Objects
Element
get string value from HashMap depending on key name
Java
Collections
Hashmap
Clone a List, Map or Set in Dart
Collections
Dart
Clone
Why is there no SortedList in Java?
Java
Sorting
Collections
Java 8 Distinct by property
Java
Collections
Java 8
Java Stream
Distinct Values
Create a List of primitive int?
Java
List
Generics
Collections
Sorting an ArrayList of objects using a custom sorting order
Java
Sorting
Collections
Arraylist
Any implementation of Ordered Set in Java?
Java
Collections
Set
Is there a short contains function for lists?
Python
List
Search
Collections
Contains
Java Immutable Collections
Java
Collections
Immutability
Elegant way to combine multiple collections of elements?
C#
Linq
Generics
Collections
builder for HashMap
Java
Collections
Guava
shortcut for creating a Map from a List in groovy?
Java
Collections
Groovy
Expandometaclass
Iterating over Java collections in Scala
Java
Scala
Collections
Scala Java-Interop
Combine multiple Collections into a single logical Collection?
Java
Collections
Guava
How to find an object in an ArrayList by property
Java
Arraylist
Collections
How do I remove repeated elements from ArrayList?
Java
List
Collections
Arraylist
Duplicates
Converting List<Integer> to List<String>
Java
String
Collections
Integer
C# Sortable collection which allows duplicate keys
C#
.Net
Collections
Sortedlist
What is the difference between Collections.emptyList() and Collections.EMPTY_LIST
Java
List
Collections
UnmodifiableMap (Java Collections) vs ImmutableMap (Google)
Java
Collections
Map
Guava
Lambda expression to convert array/List of String to array/List of Integers
Java
Arrays
Collections
Lambda
Java 8
Why is Java's AbstractList's removeRange() method protected?
Java
List
Collections
Arraylist
Protected
JUnit 4 compare Sets
Java
Unit Testing
Collections
Junit
C# Set collection?
C#
.Net
Collections
Set
What's the best way of implementing a thread-safe Dictionary?
C#
.Net
Thread Safety
Collections
How do I make my ArrayList Thread-Safe? Another approach to problem in Java?
Java
Multithreading
Collections
Synchronization
Arraylist
How to unset (remove) a collection element after fetching it?
Laravel
Collections
val-mutable versus var-immutable in Scala
Scala
Collections
Functional Programming
Immutability
Removing items from a list
Java
Collections
Using streams to collect into TreeSet with custom comparator
Java
Collections
Java 8
Difference between Dictionary and Hashtable
C#
Collections
Map.clear() vs new Map : Which one will be better?
Java
Android
Performance
Collections
Why Collections.sort uses merge sort instead of quicksort?
Java
Sorting
Collections
Why does Collections.sort use Mergesort but Arrays.sort does not?
Java
Arrays
Sorting
Collections
Java 8
Java: Best way to iterate through a Collection (here ArrayList)
Java
Collections
For Loop
ArrayList insertion and retrieval order
Java
Collections
Bidirectional 1 to 1 Dictionary in C#
C#
.Net
Collections
Collections.sort with multiple fields
Java
Sorting
Collections
Clojure: cons (seq) vs. conj (list)
Collections
Clojure
Sequence
What is the difference between List (of T) and Collection(of T)?
.Net
List
Collections
How to convert int[] into List<Integer> in Java?
Java
Arrays
Collections
Boxing
Autoboxing
Why this code throws 'Collection was modified', but when I iterate something before it, it doesn't?
C#
Collections
C#: Difference between List<T> and Collection<T> (CA1002, Do not expose generic lists)
C#
Collections
Encapsulation
The HashSet<T>.removeAll method is surprisingly slow
Java
Performance
Collections
Hashset
NameValueCollection vs Dictionary<string,string>
C#
.Net
Collections
Dictionary
Namevaluecollection
Is there anything like asynchronous BlockingCollection<T>?
C#
.Net
Collections
Task Parallel-Library
Async Await
How do I keep the iteration order of a List when using Collections.toMap() on a stream?
Java
Collections
Java 8
Java Stream
HashSet vs. List performance
.Net
Performance
Collections
List
Hash
Retrieving a List from a java.util.stream.Stream in Java 8
Java
Lambda
Collections
Java 8
Java Stream
How to convert a Java object (bean) to key-value pairs (and vice versa)?
Java
Reflection
Collections
Javabeans
Count property vs Count() method?
C#
Linq
List
Collections
Count
Get nth character of a string in Swift programming language
Swift
String
Collections
Character
Subscript
assertAlmostEqual in Python unit-test for collections of floats
Python
Unit Testing
Collections
How to shuffle an ArrayList
Java
List
Collections
Why is ReadOnlyObservableCollection.CollectionChanged not public?
C#
.Net
Collections
How to check whether key or value exist in Map?
Scala
Dictionary
Collections
Most efficient way to increment a Map value in Java
Java
Optimization
Collections
Can I use a collection initializer for Dictionary<TKey, TValue> entries?
C#
.Net
Generics
Collections
C# 3.0
Is there any way to enforce typing on NSArray, NSMutableArray, etc.?
Objective C
Generics
Data Structures
Collections
Strong Typing
Can I use collection initializers with a NameValueCollection?
C#
Collections
Easy way to convert Iterable to Collection
Java
Collections
Spring Data
Iterable
Is there a no-duplicate List implementation out there?
Java
List
Collections
Duplicates
When is a ConcurrentSkipListSet useful?
Java
Data Structures
Collections
Concurrency
LINQ .Any VS .Exists - What's the difference?
C#
Linq
Collections
Is it better to return null or empty collection?
C#
Collections
How do I apply the enrich-my-library pattern to Scala collections?
Scala
Collections
Enrich My-Library
Finding all objects that have a given property inside a collection
Java
Collections
When would I use java Collections singletonMap method?
Java
Collections
Map
How to add a range of items to an IList?
C#
List
Collections
Addrange
ArrayList: how does the size increase?
Java
Arrays
Arraylist
Collections
Python defaultdict and lambda
Python
Collections
Defaultdict
How to make a new list with a property of an object which is in another list
Java
List
Collections
Java Stream
Guava
Checking if a collection is empty in Java: which is the best method?
Java
Collections
Is Empty
Does a List<T> guarantee that items will be returned in the order they were added?
.Net
List
Collections
ConcurrentModificationException for ArrayList
Java
Collections
Concurrency
Sort a Map<Key, Value> by values
Java
Sorting
Dictionary
Collections
MongoDB query multiple collections at once
Collections
Join
Mongodb
Is there an insertion order preserving Set that also implements List?
Java
Collections
FIFO based Queue implementations?
Java
Collections
Queue
why HashMap Values are not cast in List?
Java
Arraylist
Collections
Hashmap
What are the reasons why Map.get(Object key) is not (fully) generic
Java
Generics
Collections
Map
maintaining TreeSet sort as object changes value
Java
Collections
Refresh
Treeset
Sortedset
How to Serialize a list in java?
Java
Serialization
Collections
Apache Commons
What is the best way to combine two lists into a map (Java)?
Java
Data Structures
Collections
How to sort a List/ArrayList?
Java
List
Sorting
Arraylist
Collections
Sort Java Collection
Java
Sorting
Collections
Collectors.toMap() keyMapper -- more succinct expression?
Java
Collections
Lambda
Java 8
Java Stream
What is the purpose of collections.ChainMap?
Python
Python 3.x
Dictionary
Data Structures
Collections
Is it faster to add to a collection then sort it, or add to a sorted collection?
Java
Sorting
Collections
When should I accept a parameter of Iterable<T> vs. Collection<T> in Java?
Java
Collections
Why does exist WeakHashMap, but absent WeakSet?
Java
Collections
Garbage Collection
Weak References
What is the fastest Java collection with the basic functionality of a Queue?
Java
Performance
Collections
Java: How to convert String[] to List or Set
Java
Arrays
Collections
Converter
Given that HashMaps in jdk1.6 and above cause problems with multi=threading, how should I fix my code
Java
Multithreading
Performance
Collections
Add multiple items to already initialized arraylist in java
Java
Arraylist
Collections
defaultdict of defaultdict?
Python
Collections
Iterate through string array in Java
Java
Arrays
Collections
How to convert IEnumerable<string> to one comma separated string?
C#
String
Linq
Collections
Ienumerable
In what situations is the CopyOnWriteArrayList suitable?
Java
Collections
Fastest way to search in a string collection
C#
Winforms
Linq
Collections
String Search
Why should the interface for a Java class be preferred?
Java
Collections
Interface
.NET - Convert Generic Collection to DataTable
C#
Generics
Collections
Datatable
Nullable
What are Reified Generics? How do they solve Type Erasure problems and why can't they be added without major changes?
Java
Generics
Collections
Jvm
Reification
Collection was modified; enumeration operation may not execute in ArrayList
C#
Exception
Collections
Enumeration
java.lang.IndexOutOfBoundsException: Source does not fit in dest
Java
Arraylist
Collections
Indexoutofboundsexception
Best implementation for Key Value Pair Data Structure?
C#
Data Structures
Collections
Performance considerations for keySet() and entrySet() of Map
Java
Performance
Collections
Is there an AddRange equivalent for a HashSet in C#
C#
Collections
Hashset
Addrange
Performance ConcurrentHashmap vs HashMap
Java
Collections
Hashmap
Getting an element from a Set
Java
Collections
Set
Equals
Which is faster: clear collection or instantiate new
.Net
Performance
List
Optimization
Collections
StringDictionary vs Dictionary<string, string>
Generics
.Net 3.5
Collections
Dictionary
Stringdictionary
C# Iterate through NameValueCollection
C#
Collections
Namevaluecollection
How to move specific item in array list to the first item
Java
Android
Collections
Arraylist
Swap
Best way to remove items from a collection
C#
Collections
How to Quickly Remove Items From a List
C#
Linq
List
Collections
Convert List<String> to List<Integer> directly
Java
List
Collections
Arraylist
Shortcut for adding to List in a HashMap
Java
Collections
Hashmap
Performance and Memory allocation comparison between List and Set
Java
List
Collections
Set
Fastest Convert from Collection to List<T>
C#
Collections
How to quickly and conveniently create a one element arraylist
Java
Arraylist
Collections
How to find Max Date in List<Object>?
Java
Collections
Why does Enumeration get converted to ArrayList and not List in java.utils?
Java
Arraylist
Collections
Return Type
Does C# have a way of giving me an immutable Dictionary?
C#
Java
.Net
Collections
Dictionary
A Queue that ensure uniqueness of the elements?
Java
Collections
Queue
Guava
Unique Constraint
Enum to Dictionary in C#
C#
Dictionary
Collections
Enums
Jquery how to find an Object by attribute in an Array
Jquery
Collections
Filter
Traversal
Java collections convert a string to a list of characters
Java
String
Collections
Can Java 8 Streams operate on an item in a collection, and then remove it?
Java
Collections
Java 8
Filtering
Java Stream
Cost of len() function
Python
Algorithm
Collections
Complexity Theory
How to get the first element of the List or Set?
Java
List
Collections
Set
Convert List<T> to ObservableCollection<T> in WP7
C#
.Net
Windows Phone-7
Collections
Explain the syntax of Collections.<String>emptyList()
Java
Generics
Collections
How to add an item to a list in Kotlin?
List
Kotlin
Collections
Kotlin Android-Extensions
best way to pick a random subset from a collection?
Java
Algorithm
Collections
Random
Subset
When to use inverse=false on NHibernate / Hibernate OneToMany relationships?
Nhibernate
Hibernate
Collections
One to-Many
Inverse
Collections.synchronizedList and synchronized
Java
Collections
Synchronization
Array vs ArrayList in performance
Java
Arrays
Performance
Collections
Arraylist
Null safe Collection as Stream in Java 8
Java
Collections
Null
Java 8
Java Stream
How to easily initialize a list of Tuples?
C#
List
Collections
.Net 4.0
Tuples
Java Ordered Map
Java
Collections
make ArrayList Read only
Java
Collections
Jakarta Ee
Arraylist
Thread safe collections in .NET
C#
.Net
Multithreading
Collections
Symfony2 collection of Entities - how to add/remove association with existing entities?
Php
Forms
Collections
Symfony
Entity
What is the Simplest Way to Reverse an ArrayList?
Java
Android
Arraylist
Collections
Why we can't do List<Parent> mylist = ArrayList<child>();
Java
Generics
Inheritance
Collections
find out the elements of an arraylist which is not present in another arraylist
Java
Arrays
List
Collections
Arraylist
MongoDB collection hyphenated name
Mongodb
Collections
Determining whether an object is a member of a collection in VBA
Vba
Object
Ms Access
Collections
Best way to remove multiple items matching a predicate from a .NET Dictionary?
C#
.Net
Linq
Collections
Dictionary
Difference between a Seq and a List in Scala
List
Scala
Collections
Seq
Java - How to create new Entry (key, value)
Java
Dictionary
Collections
Key Value
Define a fixed-size list in Java
Java
List
Collections
How can I rename a collection in MongoDB?
Mongodb
Collections
Rename
Flattening a collection
Java
Collections
Java 8 stream map to list of keys sorted by values
Java
Collections
Lambda
Java 8
Java Stream
Is an "infinite" iterator bad design?
Java
Collections
Iterator
What is the difference between SynchronizedCollection<T> and the other concurrent collections?
C#
Collections
.Net 4.0
Thread Safety
Concurrent Collections
OData "where ID in list" query
Linq
Collections
Filter
Odata
List vs ArrayList vs Dictionary vs Hashtable vs Stack vs Queue?
C#
Collections
Classical set operations for java.util.Collection
Java
Collections
Set
ArrayList Vs LinkedList
Java
Data Structures
Collections
Arraylist
Linked List
Get list of attributes of an object in an List
Java
Class
List
Collections
How to sort alphabetically while ignoring case sensitive?
Java
Android
Collections
Why does Java let you cast to a collection?
Java
Collections
Interface
Casting
Auto-initializing C# lists
C#
.Net
List
Collections
Sorting a collection of objects
Java
Sorting
Collections
Convert Dictionary.keyscollection to array of strings
C#
Collections
Multiple indexes for a Java Collection - most basic solution?
Java
Collections
Indexing
How to drop or delete a collection in MongoDB?
Mongodb
Collections
detect last foreach loop iteration
Java
Algorithm
Collections
How to convert/transform a collection to another collection by element's property?
Collections
Filter
Kotlin
Is it possible that TreeSet equals HashSet but not HashSet equals TreeSet
Java
Collections
Hashset
Treeset
Why does WCF return myObject[] instead of List<T> like I was expecting?
C#
Wcf
Collections
Why doesn't Dictionary<TKey, TValue> support null key?
C#
Dictionary
Collections
Put an element to the tail of a collection
Collections
Clojure
How to directly initialize a HashMap (in a literal way)?
Java
Dictionary
Collections
Initialization
How do I reload a relation collection in laravel?
Php
Collections
Laravel
Laravel 4
Relationship
Limit size of Queue<T> in .NET?
.Net
Collections
Queue
What is a practical, real world example of the Linked List?
Collections
Linked List
Car Analogy
How to most elegantly iterate through parallel collections?
Java
Collections
Comparing two List<string> for equality
C#
.Net
Collections
Comparison
Equality
Most succinct way to convert ListBox.items to a generic list
C#
Generics
Collections
Type Conversion
Java: Get first item from a collection
Java
Collections
Iterable
Rule of thumb for choosing an implementation of a Java Collection?
Java
Collections
Heuristics
Get first key from Dictionary<string, string>
C#
.Net
Dictionary
Collections
How to convert a Collection to List?
Java
List
Sorting
Collections
Apache Commons-Collection
How to remove duplicates from a list?
Java
List
Collections
Duplicates
Is it possible in java make something like Comparator but for implementing custom equals() and hashCode()
Java
Collections
Equals
Hashcode
Filter the elements of a map based on a subset of its keys without iterating through the entire thing
Java
Collections
Map
Set
Intersection
Javascript collection
Javascript
Collections
What is the time complexity performance of HashSet.contains() in Java?
Java
Collections
Java ArrayList and HashMap on-the-fly
Java
Collections
How are Scala collections able to return the correct collection type from a map operation?
Scala
Collections
Scala pattern matching on sequences other than Lists
Scala
Collections
Pattern Matching
java.lang.UnsupportedOperationException at java.util.AbstractList.remove(Unknown Source)
Java
Arrays
Exception
Collections
How to iterate through LinkedHashMap with lists as values
Java
Collections
Linkedhashmap
Performance differences... so dramatic?
C#
.Net
Data Structures
Collections
What is the main difference between Collection and Collections in Java?
Java
Collections
Is there an elegant way to remove nulls while transforming a Collection using Guava?
Java
Collections
Refactoring
Guava
C# - Get the item type for a generic list
C#
Collections
Generics
Java List Sorting: Is there a way to keep a list permantly sorted automatically like TreeMap?
Java
List
Sorting
Collections
Treemap
How to add element at specific index/position in LinkedHashMap?
Java
Collections
Linkedhashmap
Finding an item that matches predicate in Scala
Scala
Collections
Idioms
How to remove element from ArrayList by checking its value?
Java
Collections
Arraylist
Why do C# collection initializers work this way?
C#
Collections
Java - How to convert type collection into ArrayList?
Java
Collections
What is the difference between google's ImmutableList and Collections.unmodifiableList ()?
Java
Collections
Comparison
Guava
Is there a way to get all the querystring name/value pairs into a collection?
C#
asp.net
Collections
Query String
Add items to a collection if the collection does NOT already contain it by comparing a property of the items?
C#
Linq
Collections
Contains
Map.Entry: How to use it?
Java
Dictionary
Collections
Hashmap
Pythonic way to iterate over a collections.Counter() instance in descending order?
Collections
Iteration
Python 2.7
Python
What's the difference between the square bracket and dot notations in Python?
Python
Object
Collections
Attributes
Member