Hi i am trying to add the values to list as show in below code. i am getting error.

if i use like below 

```
for (String n2 : number  ) {
List<String> ARRAY  = new ArrayList<String>();
if (!ARRAY.contains(n2)) {
 Email(n2);
  ARRAY.add(n2);
 }
 }

```

if i am using above. Though already email sent with value n2 again it is sending again. For first it has to sent but for second time n2 should be in array but still it sending. any one help. if n2 is passed to email second time it should not pass. 

I am re-posting question as pervious one seems not clear i guess.