I have an ArrayList which can contain 3 elements. Now after adding first 3 elements whenever i want to add another elements it will be added in the last position(3) and the element of first position will be out of the list. For example:
i add "a","b","c" in the list
a
b
c
then if i want to add "d" in the list
b
c
d
then if i want to add "e" in the list
c
d
e
........so on
How can i do this in android??? Can anyone help??