You can use String.Join (actually the IEnumerable<T> overload is taken):
String joined = String.Join("", yourArray);
i'm new in c# how i dont know how place the string among the text
You can use String.Format to build the text and to increase readability:
var inserted = page[i].ToString();
var allInserted = String.Join("", yourArray);
var pageFault = pf.ToString();
var itemText = String.Format("After Inserting ({0}) {1} page fault = {2}"
,inserted, allInserted, pageFault);
listBox2.Items.Add(itemText);
Edit 2:
can i replace some Character instead one number in array? my array :
{1,2,3,4,-1"} output : 1,2,3,4,empty
Yes, you can replace the output:
String.Join("", yourArray.Where(i => i != -1));
Edit 3:
i understand how i can exclude -1 but i didn't understand how i can
replace something with that...like "empty" instead -1
Here we go ...
String.Join(", ", intArray.Select(i => i == -1 ? "empty" : i.ToString()));