My project wants to look at the array and get out every two neighbors members together in just one element in the new array. I tried to do that in 2 different ways but all of them didn't work well, I can't find the reason.
public static void DviderWords()
{
string str = "Alameer Ahmed Amr Ali alameer .";
string[] oops = str.Split(' ', ',', '!');
int stringCounter = oops.Length;
string[] holder = new string[10];
for (int i = 0; i < stringCounter; i++)
{
for (int j = i + 1; j > i; i--)
{
string newVarible = oops[0+i] + oops[1+i];
holder[i] = newVarible;
}
}
}