Take the 2-minute tour ×

What is the Android equivalent to the C# List<T>?

I have seen that java has List<T> in java.util but I can only seem to find the interface definition in Android 2.3.3?

Fundamentally I am looking for a generic collection that supports iteration, sort and index based access?

share|improve this question
add comment

1 Answer

up vote 8 down vote accepted

You can use ArrayList. Android ArrayList

share|improve this answer
It's not Android ArrayList, it's Java ArrayList ;) –  Mikooos Oct 16 '11 at 10:24
Sure, I just pointed to the andorid resource... –  Raz Oct 16 '11 at 10:40
Depending on what you want to do with it, you can choose other List implementations, ArrayList may slow down your application, when list's size is often changed. –  Andras Balázs Lajtha Oct 16 '11 at 13:16
Also if using between different threads, it's better to use Vector which is synchronized. –  Raz Oct 16 '11 at 14:06
add comment

Your Answer


