I thought this code:
...was similar to that one:
...but it seems it's not the case because the first case returns an error (Unsupported Operation Exception) when I try to remove the first element (ListeTas.RemoveAt(0)).
B4X:
Dim ListeTas As List
ListeTas.Initialize2(Array As Int(0, 1, 2, 3))
B4X:
Dim ListeTas As List
ListeTas.Initialize
For i = 0 To 3
ListeTas.Add(i)
Next