public void For()
{
string[] array = new string[]{"111","222","333"};
for(int i = 0; i < array.Length; i++)
{
Console.WriteLine(array[i]);
}
}
public void ForeachOnArray()
{
string[] array = new string[]{"111","222","333"};
foreach(string s in array)
{
Console.WriteLine(s);
}
}
|