Top "Arraylist" questions

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

How to find an object in an ArrayList by property

How can I find an object, Carnet, in a ArrayList<Carnet> knowing its property codeIsin. List<Carnet&…

java arraylist collections
Common elements in two lists

I have two ArrayList objects with three integers each. I want to find a way to return the common elements …

java arraylist element
Java List.add() UnsupportedOperationException

I try to add objects to a List<String> instance but it throws an UnsupportedOperationException. Does anyone know …

java list exception arraylist unsupportedoperation
make arrayList.toArray() return more specific types

So, normally ArrayList.toArray() would return a type of Object[]....but supposed it's an Arraylist of object Custom, how do …

java arrays object types arraylist
How to make a deep copy of Java ArrayList

Possible Duplicate: How to clone ArrayList and also clone its contents? trying to make a copy of an ArrayList. The …

java arraylist deep-copy
Arraylist swap elements

How do I swap the the first and last elements of an ArrayList? I know how to swap the elements …

java arraylist
list.clear() vs list = new ArrayList<Integer>();

Which one of the 2 options is better and faster to clear an ArrayList, and why? list.clear() or list = new …

java arraylist
How to use ArrayAdapter<myClass>

ArrayList<MyClass> myList = new ArrayList<MyClass>(); ListView listView = (ListView) findViewById(R.id.list); ArrayAdapter<MyClass&…

android arraylist
Getting Index of an item in an arraylist;

I have a Class called AuctionItem. The AuctionItem Class has a method called getName() that returns a String. If I …

java arraylist find element indexof
How can I calculate the difference between two ArrayLists?

I have two ArrayLists. ArrayList A contains: ['2009-05-18','2009-05-19','2009-05-21'] ArrayList …

java arraylist