My English isn't that good.

I try to make a TextLogger, for example:
if I have two different arrays:

```
string[] array1 = {"a", "b", "c", "d"}
string[] array2 = {"y", "c", "h", "f"}

```

and I have the char "c" in both of the arrays, then both of the char "c" should be removed.

Output:
a, b, d, h, y, f

this is what I managed to do so far:

```
string[] array1 = {"a", "b", "c", "d"}
string[] array2 = {"y", "c", "h", "f"}
for(int i = 0; i < array1.Length; i++)
{
    if(array1[i] == array2[i])
    {

    }
}

```

edit(sorry for keep changing my question):

and how I can do it with this:

```
ArrayList array1 = new ArrayList();
array1.Add("a");
array1.Add("b");
array1.Add("c");
array1.Add("d");

ArrayList array2 = new ArrayList();
array1.Add("y");
array1.Add("c");
array1.Add("h");
array1.Add("f");

```