// Arrays\Array Conversions
using System;
publicclass ArrayConversions
{
publicstaticvoid PrintArray(object[] arr)
{
foreach (object obj in arr)
Console.WriteLine("Word: {0}", obj);
}
publicstaticvoid Main()
{
string s = "I will not buy this record, it is scratched.";
char[] separators = {' '};
string[] words = s.Split(separators);
PrintArray(words);
}
}