Top "List" questions

The list tag may refer to: a linked list (an ordered set of nodes, each referencing its successor), or a form of dynamic array.

Convert generic List/Enumerable to DataTable?

I have few methods that returns different Generic Lists. Exists in .net any class static method or whatever to convert …

c# list generics datatable
How can I remove an element from a list?

I have a list and I want to remove a single element from it. How can I do this? I've …

r list indexing
How can change width of dropdown list?

I have a listbox and I want to decrease its width. Here is my code: <select name="wgtmsr" id="…

html css list drop-down-menu html-select
How can I find the last element in a List<>?

The following is an extract from my code: public class AllIntegerIDs { public AllIntegerIDs() { m_MessageID = 0; m_MessageType = 0; m_ClassID = 0; m_…

c# list
IndexError: list index out of range and python

I'm telling my program to print out line 53 of an output. Is this error telling me that there aren't that …

python list indexoutofboundsexception
Get a list of distinct values in List

In C#, say I have a class called Note with three String member variables. public class Note { public string Title; …

c# linq list distinct
How can I sort a List alphabetically?

I have a List<String> object that contains country names. How can I sort this list alphabetically?

java list sorting collections alphabetical
Java: How to convert List to Map

Recently I have conversation with a colleague about what would be the optimal way to convert List to Map in …

java list data-structures hashmap data-conversion
Why do I get an UnsupportedOperationException when trying to remove an element from a List?

I have this code: public static String SelectRandomFromTemplate(String template,int count) { String[] split = template.split("|"); List<String> …

java exception list arraylist
Split a string by a delimiter in python

How to split this string where __ is the delimiter MATCHES__STRING To get an output of ['MATCHES', 'STRING']?

python string list split