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.

How to construct a set out of list items in python?

I have a list of filenames in python and I would want to construct a set out of all the …

python list set
Java List.contains(Object with field value equal to x)

I want to check whether a List contains an object that has a field with a certain value. Now, I …

java list search contains
What's the difference between lists and tuples?

What's the difference? What are the advantages / disadvantages of tuples / lists?

python list tuples
How do I copy items from list to list without foreach?

How do I transfer the items contained in one List to another in C# without using foreach?

c# oop list foreach copy
How can I return two values from a function in Python?

I would like to return two values from a function in two separate variables. For example: def select_choice(): loop = 1 …

python list function return return-value
Removing a list of characters in string

I want to remove characters in a string in python: string.replace(',', '').replace("!", '').replace(":", '').replace(";", …

python string list replace
Creating a list of objects in Python

I'm trying to create a Python script that opens several databases and compares their contents. In the process of creating …

python list object loops
How to avoid "ConcurrentModificationException" while removing elements from `ArrayList` while iterating it?

I'm trying to remove some elements from an ArrayList while iterating it like this: for (String str : myArrayList) { if (someCondition) { …

java list arraylist iterator
Type List vs type ArrayList in Java

(1) List<?> myList = new ArrayList<?>(); (2) ArrayList<?> myList = new ArrayList<?>(); I understand that with (1), …

java list interface decoupling
Find and replace string values in list

I got this list: words = ['how', 'much', 'is[br]', 'the', 'fish[br]', 'no', 'really'] What I would like …

python string list