I have one array have same name multiple times. so how to remove this, only i want display in one name : ArrayList name = new ArrayList();
name= india, japan, china, usa, china, japan, Australia, india, china
I want to display like this
name= india,japan china, usa, Australia
I am little bit confused , how to remove duplicate name. It means, i want to display unque name one at a time, not a multiple times same name in list.
Note:
I found the solution, but when i display on list, if first element japan display then i click then it is shows india in Toast, how to occur this? then others same. not accurate display on toast.