Top "Arraylist" questions

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

ArrayList initialization equivalent to array initialization

I am aware that you can initialize an array during instantiation as follows: String[] names = new String[] {"Ryan", "Julie", "Bob"}; …

java arrays initialization arraylist
How to randomize two ArrayLists in the same fashion?

I have two arraylist filelist and imgList which related to each other, e.g. "H1.txt" related to "e1.jpg". …

java list collections arraylist
How to remove all null elements from a ArrayList or String Array?

I try with a loop like that // ArrayList tourists for (Tourist t : tourists) { if (t != null) { t.setId(idForm); } } But …

java performance loops for-loop arraylist
When to use a linked list over an array/array list?

I use a lot of lists and arrays but I have yet to come across a scenario in which the …

arrays list arraylist linked-list
How do I make my ArrayList Thread-Safe? Another approach to problem in Java?

I have an ArrayList that I want to use to hold RaceCar objects that extend the Thread class as soon …

java multithreading collections synchronization arraylist
Can not deserialize instance of java.util.ArrayList out of VALUE_STRING

I have a REST service built with Jersey and deployed in the AppEngine. The REST service implements the verb PUT …

java json arraylist jackson json-deserialization
java howto ArrayList push, pop, shift, and unshift

I've determined that a Java ArrayList.add is similar to a JavaScript Array.push I'm stuck on finding ArrayList functions …

java arraylist
How can I convert String[] to ArrayList<String>

Possible Duplicate: Assigning an array to an ArrayList in Java I need to convert a String[] to an ArrayList<…

java android string arraylist
Sorting an ArrayList of objects using a custom sorting order

I am looking to implement a sort feature for my address book application. I want to sort an ArrayList<…

java sorting collections arraylist
How can I convert ArrayList<Object> to ArrayList<String>?

ArrayList<Object> list = new ArrayList<Object>(); list.add(1); list.add("Java"); list.add(3.14); System.out.println(…

java arraylist