Top "Arraylist" questions

A simple collection data type found in some languages / platforms (such as in Java or .NET).

Performance differences between ArrayList and LinkedList

Yes, this is an old topic, but I still have some confusions. In Java, people say: ArrayList is faster than …

java arraylist doubly-linked-list
Passing ArrayList through Intent

I am trying to pass an arrayList to another activity using intents. Here is the code in the first activity. …

android arraylist android-intent
How to use ArrayList.addAll()?

I want to fill an ArrayList with these characters +,-,*,^ etc. How can I do this without having to add …

java arraylist add character
How can I slice an ArrayList out of an ArrayList in Java?

How do I get an array slice of an ArrayList in Java? Specifically I want to do something like this: …

java arraylist
How can I initialize an array without knowing it size?

I have a situation, where I have to apply a criteria on an input array and reuturn another array as …

java arrays arraylist size variable-length-array
When to use HashMap over LinkedList or ArrayList and vice-versa

What is the reason why we cannot always use a HashMap, even though it is much more efficient than ArrayList …

java arrays arraylist linked-list hashmap
How to Sort Date in descending order From Arraylist Date in android?

I have an ArrayList which stores Dates and I sorted them in descending order. Now I want to display them …

java android date arraylist sortedlist
How to use an arraylist as a prepared statement parameter

I have looked and have been unable to find an answer to the following challenge I am having. It seems …

java arraylist prepared-statement
JPA passing list to IN clause in named native query

I know I can pass a list to named query in JPA, but how about NamedNativeQuery? I have tried many …

jpa arraylist in-clause nativequery
Convert ArrayList into 2D array containing varying lengths of arrays

So I have: ArrayList<ArrayList<String>> Which contains an x number of ArrayLists which contain another …

java multidimensional-array arraylist indexing varying