Top "Arraylist" questions

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

What is the difference between List and ArrayList?

I've been using ArrayList recently in my android project at the office and I'm a bit confused between List and …

java android list arraylist
How to replace existing value of ArrayList element in Java

I am still quite new to Java programming and I am trying to update an existing value of an ArrayList …

java arraylist
Convert Iterator to ArrayList

Given Iterator<Element>, how can we convert that Iterator to ArrayList<Element> (or List<Element&…

java list arraylist iterator
Java ArrayList replace at specific index

I need help with this java please. I created an ArrayList of bulbs, and I'm trying to replace a bulb …

java arraylist
How do I find out what type each object is in a ArrayList<Object>?

I have a ArrayList made up of different elements imported from a db, made up of strings, numbers, doubles and …

java generics reflection arraylist
Create an Array of Arraylists

I am wanting to create an array of arraylist like below: ArrayList<Individual>[] group = new ArrayList<Individual&…

java arrays arraylist
Better way to find index of item in ArrayList?

For an Android app, I have the following functionality private ArrayList<String> _categories; // eg ["horses","camels"[,etc]] private …

java for-loop arraylist
How do I clone a generic List in Java?

I have an ArrayList<String> that I'd like to return a copy of. ArrayList has a clone method …

java generics arraylist clone
Java: Detect duplicates in ArrayList?

How could I go about detecting (returning true/false) whether an ArrayList contains more than one of the same element …

java arrays arraylist duplicates
Sorting arraylist in alphabetical order (case insensitive)

I have a string arraylist names which contains names of people. I want to sort the arraylist in alphabetical order. …

java sorting arraylist