Top "Arraylist" questions

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

Load arrayList data into JTable

I'm trying to set items from a method called FootballClub and so far it's fine. but then I created an …

java swing arraylist jtable grid-layout
Correct way to synchronize ArrayList in java

I'm not sure if this is the correct way to synchronize my ArrayList. I have an ArrayList in_queue which …

java arraylist concurrency synchronization
Check if an ArrayList contains every element from another ArrayList (or Collection)

There is probably a simple one-liner that I am just not finding here, but this is my question: How do …

java arraylist comparison contains
Efficient way to divide a list into lists of n size

I have an ArrayList, which I want to divide into smaller Lists of n size, and perform an operation on …

java arraylist partitioning
Gson TypeToken with dynamic ArrayList item type

I have this code: Type typeOfObjectsList = new TypeToken<ArrayList<myClass>>() {}.getType(); List<myClass> objectsList = …

java reflection arraylist gson
JAXB: How to marshal objects in lists?

Perhaps a stupid question: I have a List of type <Data> which I want to marshal into a …

xml jaxb arraylist unmarshalling
How to sort a date array in PHP

I have an array in this format: Array ( [0] => Array ( [28th February, 2009] => 'bla' ) [1] => Array ( [19th March, 2009] => 'bla' ) [2] =&…

php arrays arraylist associative-array sorting
convert string to arraylist <Character> in java

How to convert a String without separator to an ArrayList<Character>. My String is like this: String str = "…

java string list arraylist converter
Declaring an ArrayList object as final for use in a constants file

I am generating an ArrayList of objects. Following is the code ArrayList someArrayList = new ArrayList(); Public ArrayList getLotOfData() { ArrayList someData = …

java arraylist constants global final
Time complexity for java ArrayList

Is ArrayList an array or a list in java? what is the time complexity for the get operation, is it …

java arraylist time-complexity